NXP Semiconductors LPC1102_04 2024.06.02 LPC1102/04 CM0 r0p0 little 2 false 8 32 ADC 10-bit ADC ADC 0x0 0x0 0xFFF registers n ADC 24 CR A/D Control Register. The ADCR register must be written to select the operating mode before A/D conversion can occur. 0x0 read-write n 0x0 0x0 BURST Burst mode 16 17 test SWMODE Software-controlled mode: Conversions are software-controlled and require 11 clocks. 0 HWMODE Hardware scan mode: The AD converter does repeated conversions at the rate selected by the CLKS field, scanning (if necessary) through the pins selected by 1s in the SEL field. The first conversion after the start corresponds to the least-significant bit set to 1 in the SEL field, then the next higher bits (pins) set to 1 are scanned if applicable. Repeated conversions can be terminated by clearing this bit, but the conversion in progress when this bit is cleared will be completed. Important: START bits must be 000 when BURST = 1 or conversions will not start. 1 CLKDIV The APB clock (PCLK) is divided by CLKDIV +1 to produce the clock for the ADC, which should be less than or equal to 4.5 MHz. Typically, software should program the smallest value in this field that yields a clock of 4.5 MHz or slightly less, but in certain cases (such as a high-impedance analog source) a slower clock may be desirable. 8 16 CLKS This field selects the number of clocks used for each conversion in Burst mode, and the number of bits of accuracy of the result in the LS bits of ADDR, between 11 clocks (10 bits) and 4 clocks (3 bits). 17 20 test 10BIT 11 clocks / 10 bits 0x0 9BIT 10 clocks / 9 bits 0x1 8BIT 9 clocks / 8 bits 0x2 7BIT 8 clocks / 7 bits 0x3 6BIT 7 clocks / 6 bits 0x4 5BIT 6 clocks / 5 bits 0x5 4BIT 5 clocks / 4 bits 0x6 3BIT 4 clocks / 3 bits 0x7 EDGE This bit is significant only when the START field contains 010-111. In these cases: Start conversion on a falling edge on the selected CAP/MAT signal. 27 28 test RISING Start conversion on a rising edge on the selected CAP/MAT signal. 0 FALLING Start conversion on a rising edge on the selected CAP/MAT signal. 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 28 32 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 28 32 SEL Selects which of the AD7:0 pins is (are) to be sampled and converted. Bit 0 selects Pin AD0, bit 1 selects pin AD1,..., and bit 7 selects pin AD7. In software-controlled mode (BURST = 0), only one channel can be selected, i.e. only one of these bits should be 1. In hardware scan mode (BURST = 1), any numbers of channels can be selected, i.e any or all bits can be set to 1. If all bits are set to 0, channel 0 is selected automatically (SEL = 0x01). 0 8 START When the BURST bit is 0, these bits control whether and when an A/D conversion is started: 24 27 test STOP No start (this value should be used when clearing PDN to 0). 0x0 START Start conversion now. 0x1 EDGEPIO0_2 Start conversion when the edge selected by bit 27 occurs on PIO0_2/SSEL/CT16B0_CAP0. 0x2 EDGEPIO1_5 Start conversion when the edge selected by bit 27 occurs on PIO1_5/DIR/CT32B0_CAP0. 0x3 EDGECT32B0_MAT0_1 Start conversion when the edge selected by bit 27 occurs on CT32B0_MAT0[1]. 0x4 EDGECT32B0_MAT1_1 Start conversion when the edge selected by bit 27 occurs on CT32B0_MAT1[1]. 0x5 EDGECT16B0_MAT0_1 Start conversion when the edge selected by bit 27 occurs on CT16B0_MAT0[1]. 0x6 EDGECT16B0_MAT1_1 Start conversion when the edge selected by bit 27 occurs on CT16B0_MAT1[1]. 0x7 DR0 A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n. 0x10 -1 read-write n 0x0 0x0 DONE This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read. 31 32 OVERRUN This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register. 30 31 RESERVED These bits always read as zeroes. 16 30 RESERVED These bits always read as zeroes. 16 30 V_VREF When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF. 6 16 DR1 A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n. 0x14 -1 read-write n 0x0 0x0 DONE This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read. 31 32 OVERRUN This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register. 30 31 RESERVED These bits always read as zeroes. 16 30 RESERVED These bits always read as zeroes. 16 30 V_VREF When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF. 6 16 DR2 A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n. 0x18 -1 read-write n 0x0 0x0 DONE This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read. 31 32 OVERRUN This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register. 30 31 RESERVED These bits always read as zeroes. 16 30 RESERVED These bits always read as zeroes. 16 30 V_VREF When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF. 6 16 DR3 A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n. 0x1C -1 read-write n 0x0 0x0 DONE This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read. 31 32 OVERRUN This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register. 30 31 RESERVED These bits always read as zeroes. 16 30 RESERVED These bits always read as zeroes. 16 30 V_VREF When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF. 6 16 DR4 A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n. 0x20 -1 read-write n 0x0 0x0 DONE This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read. 31 32 OVERRUN This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register. 30 31 RESERVED These bits always read as zeroes. 16 30 RESERVED These bits always read as zeroes. 16 30 V_VREF When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF. 6 16 GDR A/D Global Data Register. Contains the result of the most recent A/D conversion. 0x4 read-write n 0x0 0x0 CHN These bits contain the channel from which the result bits V_VREF were converted. 24 27 DONE This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read and when the ADCR is written. If the ADCR is written while a conversion is still in progress, this bit is set and a new conversion is started. 31 32 OVERRUN This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits. 30 31 RESERVED Reserved. These bits always read as zeroes. 27 30 RESERVED Reserved. These bits always read as zeroes. 16 24 RESERVED Reserved. These bits always read as zeroes. 27 30 V_VREF When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin selected by the SEL field, divided by the voltage on the VDD pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VSS, while 0x3FF indicates that the voltage on ADn was close to, equal to, or greater than that on VREF. 6 16 INTEN A/D Interrupt Enable Register. This register contains enable bits that allow the DONE flag of each A/D channel to be included or excluded from contributing to the generation of an A/D interrupt. 0xC read-write n 0x0 0x0 ADGINTEN When 1, enables the global DONE flag in ADDR to generate an interrupt. When 0, only the individual A/D channels enabled by ADINTEN 7:0 will generate interrupts. 8 9 ADINTENn These bits allow control over which A/D channels generate interrupts for conversion completion. When bit 0 is one, completion of a conversion on A/D channel 0 will generate an interrupt, when bit 1 is one, completion of a conversion on A/D channel 1 will generate an interrupt, etc. 0 8 RESERVED Unused, always 0. 9 32 STAT A/D Status Register. This register contains DONE and OVERRUN flags for all of the A/D channels, as well as the A/D interrupt flag. 0x30 read-only n 0x0 0x0 ADINT This bit is the A/D interrupt flag. It is one when any of the individual A/D channel Done flags is asserted and enabled to contribute to the A/D interrupt via the ADINTEN register. 16 17 DONE These bits mirror the DONE status flags that appear in the result register for each A/D channel n. 0 8 OVERRUN These bits mirror the OVERRRUN status flags that appear in the result register for each A/D channel n. Reading ADSTAT allows checking the status of all A/D channels simultaneously. 8 16 RESERVED Unused, always 0. 17 32 CT16B0 16-bitcounter/timers (CT16B0/1) CT16B0 0x0 0x0 0xFFF registers n CT16B0 16 EMR External Match Register (EMR). The EMR controls the match function and the external match pins CT16B0_MAT[2:0]. 0x3C read-write n 0x0 0x0 EM0 External Match 0. This bit reflects the state of output CT16B0_MAT0/CT16B1_MAT0, whether or not this output is connected to its pin. When a match occurs between the TC and MR0, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[5:4] control the functionality of this output. This bit is driven to the CT16B0_MAT0/CT16B1_MAT0 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 0 1 EM1 External Match 1. This bit reflects the state of output CT16B0_MAT1/CT16B1_MAT1, whether or not this output is connected to its pin. When a match occurs between the TC and MR1, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[7:6] control the functionality of this output. This bit is driven to the CT16B0_MAT1/CT16B1_MAT1 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 1 2 EM2 External Match 2. This bit reflects the state of output match channel 2, whether or not this output is connected to its pin. When a match occurs between the TC and MR2, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[9:8] control the functionality of this output. Note that on counter/timer 0 this match channel is not pinned out. This bit is driven to the CT16B1_MAT2 pin if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 2 3 EM3 External Match 3. This bit reflects the state of output of match channel 3. When a match occurs between the TC and MR3, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[11:10] control the functionality of this output. There is no output pin available for this channel on either of the 16-bit timers. 3 4 EMC0 External Match Control 0. Determines the functionality of External Match 0. 4 6 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT16Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT16Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC1 External Match Control 1. Determines the functionality of External Match 1. 6 8 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT16Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT16Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC2 External Match Control 2. Determines the functionality of External Match 2. 8 10 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT16Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT16Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC3 External Match Control 3. Determines the functionality of External Match 3. 10 12 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT16Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT16Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 12 32 IR Interrupt Register (IR). The IR can be written to clear interrupts. The IR can be read to identify which of five possible interrupt sources are pending. 0x0 read-write n 0x0 0x0 MR0INT Interrupt flag for match channel 0. 0 1 MR1INT Interrupt flag for match channel 1. 1 2 MR2INT Interrupt flag for match channel 2. 2 3 MR3INT Interrupt flag for match channel 3. 3 4 RESERVED Reserved 4 32 MCR Match Control Register (MCR). The MCR is used to control if an interrupt is generated and if the TC is reset when a Match occurs. 0x14 read-write n 0x0 0x0 MR0I Interrupt on MR0: an interrupt is generated when MR0 matches the value in the TC. 0 1 ENUM Disabled Disabled 0 Enabled Enabled 1 MR0R Reset on MR0: the TC will be reset if MR0 matches it. 1 2 ENUM Disabled Disabled 0 Enabled Enabled 1 MR0S Stop on MR0: the TC and PC will be stopped and TCR[0] will be set to 0 if MR0 matches the TC. 2 3 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1I Interrupt on MR1: an interrupt is generated when MR1 matches the value in the TC. 3 4 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1R Reset on MR1: the TC will be reset if MR1 matches it. 4 5 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1S Stop on MR1: the TC and PC will be stopped and TCR[0] will be set to 0 if MR1 matches the TC. 5 6 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2I Interrupt on MR2: an interrupt is generated when MR2 matches the value in the TC. 6 7 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2R Reset on MR2: the TC will be reset if MR2 matches it. 7 8 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2S Stop on MR2: the TC and PC will be stopped and TCR[0] will be set to 0 if MR2 matches the TC. 8 9 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3I Interrupt on MR3: an interrupt is generated when MR3 matches the value in the TC. 9 10 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3R Reset on MR3: the TC will be reset if MR3 matches it. 10 11 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3S Stop on MR3: the TC and PC will be stopped and TCR[0] will be set to 0 if MR3 matches the TC. 11 12 ENUM Disabled Disabled 0 Enabled Enabled 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 12 32 MR0 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x18 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 16 RESERVED Reserved. 16 32 MR1 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x1C -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 16 RESERVED Reserved. 16 32 MR2 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x20 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 16 RESERVED Reserved. 16 32 MR3 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x24 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 16 RESERVED Reserved. 16 32 PC Prescale Counter (PC). The 16-bit PC is a counter which is incremented to the value stored in PR. When the value in PR is reached, the TC is incremented and the PC is cleared. The PC is observable and controllable through the bus interface. 0x10 read-write n 0x0 0x0 PC prescale counter value. 0 16 RESERVED Reserved. 16 32 PR Prescale Register (PR). When the Prescale Counter (below) is equal to this value, the next clock increments the TC and clears the PC. 0xC read-write n 0x0 0x0 PR Prescale counter max value. 0 16 RESERVED Reserved. 16 32 PWMC PWM Control Register (PWMCON). The PWMCON enables PWM mode for the external match pins CT16B0_MAT[2:0]. 0x74 read-write n 0x0 0x0 PWMEN0 When one, PWM mode is enabled for CT16Bn_MAT0. When zero, CT16Bn_MAT0 is controlled by EM0. 0 1 PWMEN1 When one, PWM mode is enabled for CT16Bn_MAT1. When zero, CT16Bn_MAT1 is controlled by EM1. 1 2 PWMEN2 When one, PWM mode is enabled for match channel 2 or pin CT16B0_MAT2. When zero, match channel 2 or pin CT16B0_MAT2 is controlled by EM2. Match channel 2 is not pinned out on timer 1. 2 3 PWMEN3 When one, PWM mode is enabled for match channel 3. When zero, match channel 3 is controlled by EM3. Note: It is recommended to use to set the PWM cycle because it is not pinned out. 3 4 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 32 TC Timer Counter (TC). The 16-bit TC is incremented every PR+1 cycles of PCLK. The TC is controlled through the TCR. 0x8 read-write n 0x0 0x0 RESERVED Reserved. 16 32 TC Timer counter value. 0 16 TCR Timer Control Register (TCR). The TCR is used to control the Timer Counter functions. The Timer Counter can be disabled or reset through the TCR. 0x4 read-write n 0x0 0x0 CEN When one, the Timer Counter and Prescale Counter are enabled for counting. When zero, the counters are disabled. 0 1 CRST When one, the Timer Counter and the Prescale Counter are synchronously reset on the next positive edge of PCLK. The counters remain reset until TCR[1] is returned to zero. 1 2 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 2 32 CT16B1 16-bitcounter/timers (CT16B0/1) CT16B0 0x0 0x0 0xFFF registers n CT16B1 17 EMR External Match Register (EMR). The EMR controls the match function and the external match pins CT16B0_MAT[2:0]. 0x3C read-write n 0x0 0x0 EM0 External Match 0. This bit reflects the state of output CT16B0_MAT0/CT16B1_MAT0, whether or not this output is connected to its pin. When a match occurs between the TC and MR0, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[5:4] control the functionality of this output. This bit is driven to the CT16B0_MAT0/CT16B1_MAT0 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 0 1 EM1 External Match 1. This bit reflects the state of output CT16B0_MAT1/CT16B1_MAT1, whether or not this output is connected to its pin. When a match occurs between the TC and MR1, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[7:6] control the functionality of this output. This bit is driven to the CT16B0_MAT1/CT16B1_MAT1 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 1 2 EM2 External Match 2. This bit reflects the state of output match channel 2, whether or not this output is connected to its pin. When a match occurs between the TC and MR2, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[9:8] control the functionality of this output. Note that on counter/timer 0 this match channel is not pinned out. This bit is driven to the CT16B1_MAT2 pin if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 2 3 EM3 External Match 3. This bit reflects the state of output of match channel 3. When a match occurs between the TC and MR3, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[11:10] control the functionality of this output. There is no output pin available for this channel on either of the 16-bit timers. 3 4 EMC0 External Match Control 0. Determines the functionality of External Match 0. 4 6 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT16Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT16Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC1 External Match Control 1. Determines the functionality of External Match 1. 6 8 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT16Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT16Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC2 External Match Control 2. Determines the functionality of External Match 2. 8 10 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT16Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT16Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC3 External Match Control 3. Determines the functionality of External Match 3. 10 12 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT16Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT16Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 12 32 IR Interrupt Register (IR). The IR can be written to clear interrupts. The IR can be read to identify which of five possible interrupt sources are pending. 0x0 read-write n 0x0 0x0 MR0INT Interrupt flag for match channel 0. 0 1 MR1INT Interrupt flag for match channel 1. 1 2 MR2INT Interrupt flag for match channel 2. 2 3 MR3INT Interrupt flag for match channel 3. 3 4 RESERVED Reserved 4 32 MCR Match Control Register (MCR). The MCR is used to control if an interrupt is generated and if the TC is reset when a Match occurs. 0x14 read-write n 0x0 0x0 MR0I Interrupt on MR0: an interrupt is generated when MR0 matches the value in the TC. 0 1 ENUM Disabled Disabled 0 Enabled Enabled 1 MR0R Reset on MR0: the TC will be reset if MR0 matches it. 1 2 ENUM Disabled Disabled 0 Enabled Enabled 1 MR0S Stop on MR0: the TC and PC will be stopped and TCR[0] will be set to 0 if MR0 matches the TC. 2 3 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1I Interrupt on MR1: an interrupt is generated when MR1 matches the value in the TC. 3 4 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1R Reset on MR1: the TC will be reset if MR1 matches it. 4 5 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1S Stop on MR1: the TC and PC will be stopped and TCR[0] will be set to 0 if MR1 matches the TC. 5 6 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2I Interrupt on MR2: an interrupt is generated when MR2 matches the value in the TC. 6 7 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2R Reset on MR2: the TC will be reset if MR2 matches it. 7 8 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2S Stop on MR2: the TC and PC will be stopped and TCR[0] will be set to 0 if MR2 matches the TC. 8 9 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3I Interrupt on MR3: an interrupt is generated when MR3 matches the value in the TC. 9 10 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3R Reset on MR3: the TC will be reset if MR3 matches it. 10 11 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3S Stop on MR3: the TC and PC will be stopped and TCR[0] will be set to 0 if MR3 matches the TC. 11 12 ENUM Disabled Disabled 0 Enabled Enabled 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 12 32 MR0 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x18 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 16 RESERVED Reserved. 16 32 MR1 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x1C -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 16 RESERVED Reserved. 16 32 MR2 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x20 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 16 RESERVED Reserved. 16 32 MR3 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x24 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 16 RESERVED Reserved. 16 32 PC Prescale Counter (PC). The 16-bit PC is a counter which is incremented to the value stored in PR. When the value in PR is reached, the TC is incremented and the PC is cleared. The PC is observable and controllable through the bus interface. 0x10 read-write n 0x0 0x0 PC prescale counter value. 0 16 RESERVED Reserved. 16 32 PR Prescale Register (PR). When the Prescale Counter (below) is equal to this value, the next clock increments the TC and clears the PC. 0xC read-write n 0x0 0x0 PR Prescale counter max value. 0 16 RESERVED Reserved. 16 32 PWMC PWM Control Register (PWMCON). The PWMCON enables PWM mode for the external match pins CT16B0_MAT[2:0]. 0x74 read-write n 0x0 0x0 PWMEN0 When one, PWM mode is enabled for CT16Bn_MAT0. When zero, CT16Bn_MAT0 is controlled by EM0. 0 1 PWMEN1 When one, PWM mode is enabled for CT16Bn_MAT1. When zero, CT16Bn_MAT1 is controlled by EM1. 1 2 PWMEN2 When one, PWM mode is enabled for match channel 2 or pin CT16B0_MAT2. When zero, match channel 2 or pin CT16B0_MAT2 is controlled by EM2. Match channel 2 is not pinned out on timer 1. 2 3 PWMEN3 When one, PWM mode is enabled for match channel 3. When zero, match channel 3 is controlled by EM3. Note: It is recommended to use to set the PWM cycle because it is not pinned out. 3 4 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 32 TC Timer Counter (TC). The 16-bit TC is incremented every PR+1 cycles of PCLK. The TC is controlled through the TCR. 0x8 read-write n 0x0 0x0 RESERVED Reserved. 16 32 TC Timer counter value. 0 16 TCR Timer Control Register (TCR). The TCR is used to control the Timer Counter functions. The Timer Counter can be disabled or reset through the TCR. 0x4 read-write n 0x0 0x0 CEN When one, the Timer Counter and Prescale Counter are enabled for counting. When zero, the counters are disabled. 0 1 CRST When one, the Timer Counter and the Prescale Counter are synchronously reset on the next positive edge of PCLK. The counters remain reset until TCR[1] is returned to zero. 1 2 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 2 32 CT32B0 32-bit counter/timers (CT32B0/1) CT32B0 0x0 0x0 0xFFF registers n CT32B0 18 EMR External Match Register (EMR). The EMR controls the match function and the external match pins CT32B0_MAT[3:0]. 0x3C read-write n 0x0 0x0 EM0 External Match 0. This bit reflects the state of output CT32Bn_MAT0, whether or not this output is connected to its pin. When a match occurs between the TC and MR0, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[5:4] control the functionality of this output. This bit is driven to the CT32B0_MAT0/CT16B1_MAT0 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 0 1 EM1 External Match 1. This bit reflects the state of output CT32Bn_MAT1, whether or not this output is connected to its pin. When a match occurs between the TC and MR1, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[7:6] control the functionality of this output. This bit is driven to the CT32B0_MAT1/CT16B1_MAT1 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 1 2 EM2 External Match 2. This bit reflects the state of output CT32Bn_MAT2, whether or not this output is connected to its pin. When a match occurs between the TC and MR2, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[9:8] control the functionality of this output. This bit is driven to the CT32B0_MAT2/CT16B1_MAT2 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 2 3 EM3 External Match 3. This bit reflects the state of output CT32Bn_MAT3, whether or not this output is connected to its pin. When a match occurs between the TC and MR3, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[11:10] control the functionality of this output. This bit is driven to the CT32B0_MAT3/CT16B1_MAT3 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 3 4 EMC0 External Match Control 0. Determines the functionality of External Match 0. 4 6 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT32Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT32Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC1 External Match Control 1. Determines the functionality of External Match 1. 6 8 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT32Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT32Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC2 External Match Control 2. Determines the functionality of External Match 2. 8 10 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT32Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT32Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC3 External Match Control 3. Determines the functionality of External Match 3. 10 12 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT32Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT32Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 12 32 IR Interrupt Register (IR). The IR can be written to clear interrupts. The IR can be read to identify which of five possible interrupt sources are pending. 0x0 read-write n 0x0 0x0 CR0INT Interrupt flag for capture channel 0 event. 4 5 MR0INT Interrupt flag for match channel 0. 0 1 MR1INT Interrupt flag for match channel 1. 1 2 MR2INT Interrupt flag for match channel 2. 2 3 MR3INT Interrupt flag for match channel 3. 3 4 RESERVED Reserved 5 32 MCR Match Control Register (MCR). The MCR is used to control if an interrupt is generated and if the TC is reset when a Match occurs. 0x14 read-write n 0x0 0x0 MR0I Interrupt on MR0: an interrupt is generated when MR0 matches the value in the TC. 0 1 ENUM Disabled Disabled 0 Enabled Enabled 1 MR0R Reset on MR0: the TC will be reset if MR0 matches it. 1 2 ENUM Disabled Disabled 0 Enabled Enabled 1 MR0S Stop on MR0: the TC and PC will be stopped and TCR[0] will be set to 0 if MR0 matches the TC. 2 3 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1I Interrupt on MR1: an interrupt is generated when MR1 matches the value in the TC. 3 4 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1R Reset on MR1: the TC will be reset if MR1 matches it. 4 5 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1S Stop on MR1: the TC and PC will be stopped and TCR[0] will be set to 0 if MR1 matches the TC. 5 6 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2I Interrupt on MR2: an interrupt is generated when MR2 matches the value in the TC. 6 7 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2R Reset on MR2: the TC will be reset if MR2 matches it. 7 8 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2S Stop on MR2: the TC and PC will be stopped and TCR[0] will be set to 0 if MR2 matches the TC. 8 9 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3I Interrupt on MR3: an interrupt is generated when MR3 matches the value in the TC. 9 10 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3R Reset on MR3: the TC will be reset if MR3 matches it. 10 11 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3S Stop on MR3: the TC and PC will be stopped and TCR[0] will be set to 0 if MR3 matches the TC. 11 12 ENUM Disabled Disabled 0 Enabled Enabled 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 12 32 MR0 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x18 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 32 MR1 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x1C -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 32 MR2 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x20 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 32 MR3 Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate aninterrupt every time MR matches the TC. 0x24 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 32 PC Prescale Counter (PC). The 32-bit PC is a counter which is incremented to the value stored in PR. When the value in PR is reached, the TC is incremented and the PC is cleared. The PC is observable and controllable through the bus interface. 0x10 read-write n 0x0 0x0 PC Prescale counter value. 0 32 PR Prescale Register (PR). When the Prescale Counter (below) is equal to this value, the next clock increments the TC and clears the PC. 0xC read-write n 0x0 0x0 PR Prescale counter max value. 0 32 PWMC PWM Control Register (PWMCON). The PWMCON enables PWM mode for the external match pins CT32B0_MAT[3:0]. 0x74 read-write n 0x0 0x0 PWMEN0 When one, PWM mode is enabled for CT32Bn_MAT0. When zero, CT32Bn_MAT0 is controlled by EM0. 0 1 PWMEN1 When one, PWM mode is enabled for CT32Bn_MAT1. When zero, CT32Bn_MAT1 is controlled by EM1. 1 2 PWMEN2 When one, PWM mode is enabled for CT32Bn_MAT2. When zero, CT32Bn_MAT2 is controlled by EM2. 2 3 PWMEN3 When one, PWM mode is enabled for CT32Bn_MAT3. When zero, CT32Bn_MAT3 is controlled by EM3. Note: It is recommended to use match channel 3 to set the PWM cycle. 3 4 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 32 TC Timer Counter (TC). The 32-bit TC is incremented every PR+1 cycles of PCLK. The TC is controlled through the TCR. 0x8 read-write n 0x0 0x0 TC Timer counter value. 0 32 TCR Timer Control Register (TCR). The TCR is used to control the Timer Counter functions. The Timer Counter can be disabled or reset through the TCR. 0x4 read-write n 0x0 0x0 CEN Counter Enable When one, the Timer Counter and Prescale Counter are enabled for counting. When zero, the counters are disabled. 0 1 CRST Counter Reset When one, the Timer Counter and the Prescale Counter are synchronously reset on the next positive edge of PCLK. The counters remain reset until TCR[1] is returned to zero. 1 2 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 2 32 CT32B1 Product name title=UM10429 Chapter title=LPC11102 32-bit counter/timers (CT32B0/1) Modification date=11/1/2010 Major revision=1 Minor revision=not available CT32B1 0x0 0x0 0xFFF registers n CT32B1 19 CCR Capture Control Register (CCR). The CCR controls which edges of the capture inputs are used to load the Capture Registers and whether or not an interrupt is generated when a capture takes place. 0x28 read-write n 0x0 0x0 CAP0FE Capture on CT32Bn_CAP0 falling edge: a sequence of 1 then 0 on CT32Bn_CAP0 will cause CR0 to be loaded with the contents of TC. 1 2 ENUM Disabled Disabled 0 Enabled Enabled 1 CAP0I Interrupt on CT32Bn_CAP0 event: a CR0 load due to a CT32Bn_CAP0 event will generate an interrupt. 2 3 ENUM Disabled Disabled 0 Enabled Enabled 1 CAP0RE Capture on CT32Bn_CAP0 rising edge: a sequence of 0 then 1 on CT32Bn_CAP0 will cause CR0 to be loaded with the contents of TC. 0 1 ENUM Disabled Disabled 0 Enabled Enabled 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 3 32 CR0 Capture Register 0 (CR0). CR0 is loaded with the value of TC when there is an event on the CT16B0_CAP0 input. 0x2C read-only n 0x0 0x0 CAP Timer counter capture value. 0 32 CTCR Count Control Register (CTCR). The CTCR selects between Timer and Counter mode, and in Counter mode selects the signal and edge(s) for counting. 0x70 read-write n 0x0 0x0 CIS Count Input Select. When bits 1:0 in this register are not 00, these bits select which CAP pin is sampled for clocking. Note: If Counter mode is selected in the TnCTCR, the 3 bits for that input in the Capture Control Register (TnCCR) must be programmed as 000. 0x1 - 0x3 reserved. 2 4 ENUM CT32Bn_CAP0 CT32Bn_CAP0 0x0 CTM Counter/Timer Mode. This field selects which rising PCLK edges can increment Timer's Prescale Counter (PC), or clear PC and increment Timer Counter (TC). Timer Mode: every rising PCLK edge 0 2 ENUM TIMERMODE Timer Mode: every rising PCLK edge 0x0 RISING Counter Mode: TC is incremented on rising edges on the CAP input selected by bits 3:2. 0x1 FALLING Counter Mode: TC is incremented on falling edges on the CAP input selected by bits 3:2. 0x2 RISINGFALLING Counter Mode: TC is incremented on both edges on the CAP input selected by bits 3:2. 0x3 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 32 EMR External Match Register (EMR). The EMR controls the match function and the external match pins CT32B0_MAT[3:0]. 0x3C read-write n 0x0 0x0 EM0 External Match 0. This bit reflects the state of output CT32Bn_MAT0, whether or not this output is connected to its pin. When a match occurs between the TC and MR0, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[5:4] control the functionality of this output. This bit is driven to the CT32B0_MAT0/CT16B1_MAT0 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 0 1 EM1 External Match 1. This bit reflects the state of output CT32Bn_MAT1, whether or not this output is connected to its pin. When a match occurs between the TC and MR1, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[7:6] control the functionality of this output. This bit is driven to the CT32B0_MAT1/CT16B1_MAT1 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 1 2 EM2 External Match 2. This bit reflects the state of output CT32Bn_MAT2, whether or not this output is connected to its pin. When a match occurs between the TC and MR2, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[9:8] control the functionality of this output. This bit is driven to the CT32B0_MAT2/CT16B1_MAT2 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 2 3 EM3 External Match 3. This bit reflects the state of output CT32Bn_MAT3, whether or not this output is connected to its pin. When a match occurs between the TC and MR3, this bit can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[11:10] control the functionality of this output. This bit is driven to the CT32B0_MAT3/CT16B1_MAT3 pins if the match function is selected in the IOCON registers (0 = LOW, 1 = HIGH). 3 4 EMC0 External Match Control 0. Determines the functionality of External Match 0. 4 6 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT32Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT32Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC1 External Match Control 1. Determines the functionality of External Match 1. 6 8 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT32Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT32Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC2 External Match Control 2. Determines the functionality of External Match 2. 8 10 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT32Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT32Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 EMC3 External Match Control 3. Determines the functionality of External Match 3. 10 12 ENUM DONOTHING Do Nothing. 0x0 CLEAR Clear the corresponding External Match bit/output to 0 (CT32Bn_MATm pin is LOW if pinned out). 0x1 SET Set the corresponding External Match bit/output to 1 (CT32Bn_MATm pin is HIGH if pinned out). 0x2 TOGGLE Toggle the corresponding External Match bit/output. 0x3 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 12 32 IR Interrupt Register (IR). The IR can be written to clear interrupts. The IR can be read to identify which of five possible interrupt sources are pending. 0x0 read-write n 0x0 0x0 CR0INT Interrupt flag for capture channel 0 event. 4 5 MR0INT Interrupt flag for match channel 0. 0 1 MR1INT Interrupt flag for match channel 1. 1 2 MR2INT Interrupt flag for match channel 2. 2 3 MR3INT Interrupt flag for match channel 3. 3 4 RESERVED Reserved 5 32 MCR Match Control Register (MCR). The MCR is used to control if an interrupt is generated and if the TC is reset when a Match occurs. 0x14 read-write n 0x0 0x0 MR0I Interrupt on MR0: an interrupt is generated when MR0 matches the value in the TC. 0 1 ENUM Disabled Disabled 0 Enabled Enabled 1 MR0R Reset on MR0: the TC will be reset if MR0 matches it. 1 2 ENUM Disabled Disabled 0 Enabled Enabled 1 MR0S Stop on MR0: the TC and PC will be stopped and TCR[0] will be set to 0 if MR0 matches the TC. 2 3 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1I Interrupt on MR1: an interrupt is generated when MR1 matches the value in the TC. 3 4 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1R Reset on MR1: the TC will be reset if MR1 matches it. 4 5 ENUM Disabled Disabled 0 Enabled Enabled 1 MR1S Stop on MR1: the TC and PC will be stopped and TCR[0] will be set to 0 if MR1 matches the TC. 5 6 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2I Interrupt on MR2: an interrupt is generated when MR2 matches the value in the TC. 6 7 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2R Reset on MR2: the TC will be reset if MR2 matches it. 7 8 ENUM Disabled Disabled 0 Enabled Enabled 1 MR2S Stop on MR2: the TC and PC will be stopped and TCR[0] will be set to 0 if MR2 matches the TC. 8 9 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3I Interrupt on MR3: an interrupt is generated when MR3 matches the value in the TC. 9 10 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3R Reset on MR3: the TC will be reset if MR3 matches it. 10 11 ENUM Disabled Disabled 0 Enabled Enabled 1 MR3S Stop on MR3: the TC and PC will be stopped and TCR[0] will be set to 0 if MR3 matches the TC. 11 12 ENUM Disabled Disabled 0 Enabled Enabled 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 12 32 MR0 Match Register. MR can be enabled through theMCR to reset the TC, stop both the TC and PC, and/or generate an interrupt every time MR matches the TC. 0x18 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 32 MR1 Match Register. MR can be enabled through theMCR to reset the TC, stop both the TC and PC, and/or generate an interrupt every time MR matches the TC. 0x1C -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 32 MR2 Match Register. MR can be enabled through theMCR to reset the TC, stop both the TC and PC, and/or generate an interrupt every time MR matches the TC. 0x20 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 32 MR3 Match Register. MR can be enabled through theMCR to reset the TC, stop both the TC and PC, and/or generate an interrupt every time MR matches the TC. 0x24 -1 read-write n 0x0 0x0 MATCH Timer counter match value. 0 32 PC Prescale Counter (PC). The 32-bit PC is a counter which is incremented to the value stored in PR. When the value in PR is reached, the TC is incremented and the PC is cleared. The PC is observable and controllable through the bus interface. 0x10 read-write n 0x0 0x0 PC Prescale counter value. 0 32 PR Prescale Register (PR). When the Prescale Counter (below) is equal to this value, the next clock increments the TC and clears the PC. 0xC read-write n 0x0 0x0 PR Prescale counter max value. 0 32 PWMC PWM Control Register (PWMCON). The PWMCON enables PWM mode for the external match pins CT32B0_MAT[3:0]. 0x74 read-write n 0x0 0x0 PWMEN0 When one, PWM mode is enabled for CT32Bn_MAT0. When zero, CT32Bn_MAT0 is controlled by EM0. 0 1 PWMEN1 When one, PWM mode is enabled for CT32Bn_MAT1. When zero, CT32Bn_MAT1 is controlled by EM1. 1 2 PWMEN2 When one, PWM mode is enabled for CT32Bn_MAT2. When zero, CT32Bn_MAT2 is controlled by EM2. 2 3 PWMEN3 When one, PWM mode is enabled for CT32Bn_MAT3. When zero, CT32Bn_MAT3 is controlled by EM3. Note: It is recommended to use match channel 3 to set the PWM cycle. 3 4 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 32 TC Timer Counter (TC). The 32-bit TC is incremented every PR+1 cycles of PCLK. The TC is controlled through the TCR. 0x8 read-write n 0x0 0x0 TC Timer counter value. 0 32 TCR Timer Control Register (TCR). The TCR is used to control the Timer Counter functions. The Timer Counter can be disabled or reset through the TCR. 0x4 read-write n 0x0 0x0 CEN Counter Enable When one, the Timer Counter and Prescale Counter are enabled for counting. When zero, the counters are disabled. 0 1 CRST Counter Reset When one, the Timer Counter and the Prescale Counter are synchronously reset on the next positive edge of PCLK. The counters remain reset until TCR[1] is returned to zero. 1 2 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 2 32 FLASHCTRL Flash controller FLASHCTRL 0x0 0x0 0xFFF registers n FMC 27 FLASHCFG Flash memory access time configuration register 0x10 read-write n 0x0 0x0 FLASHTIM Flash memory access time. FLASHTIM +1 is equal to the number of system clocks used for flash access. 0 2 ENUM 1_SYSTEM_CLOCK_FLASH 1 system clock flash access time (for system clock frequencies of up to 20 MHz). 0x1 2_SYSTEM_CLOCKS_FLAS 2 system clocks flash access time (for system clock frequencies of up to 40 MHz). 0x2 3_SYSTEM_CLOCKS_FLAS 3 system clocks flash access time (for system clock frequencies of up to 50 MHz). 0x3 RESERVED Reserved. User software must not change the value of these bits. Bits 31:2 must be written back exactly as read. 2 32 FMSSTART Signature start address register 0x20 read-write n 0x0 0x0 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 17 32 START Signature generation start address (corresponds to AHB byte address bits[20:4]). 0 17 FMSSTOP Signature stop-address register 0x24 read-write n 0x0 0x0 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 18 32 SIG_START Start control bit for signature generation. 17 18 ENUM SIGNATURE_GENERATION Signature generation is stopped 0 INITIATE_SIGNATURE_G Initiate signature generation 1 STOP BIST stop address divided by 16 (corresponds to AHB byte address [20:4]). 0 17 FMSTAT Signature generation status register 0xFE0 read-only n 0x0 0x0 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 3 32 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 3 32 SIG_DONE When 1, a previously started signature generation has completed. See FMSTATCLR register description for clearing this flag. 2 3 FMSTATCLR Signature generation status clear register 0xFE8 write-only n 0x0 0x0 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 3 32 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 3 32 SIG_DONE_CLR Writing a 1 to this bits clears the signature generation completion flag (SIG_DONE) in the FMSTAT register. 2 3 FMSW0 Word 0 [31:0] 0x2C read-only n 0x0 0x0 SW0_31_0 Word 0 of 128-bit signature (bits 31 to 0). 0 32 FMSW1 Word 1 [63:32] 0x30 read-only n 0x0 0x0 SW1_63_32 Word 1 of 128-bit signature (bits 63 to 32). 0 32 FMSW2 Word 2 [95:64] 0x34 read-only n 0x0 0x0 SW2_95_64 Word 2 of 128-bit signature (bits 95 to 64). 0 32 FMSW3 Word 3 [127:96] 0x38 read-only n 0x0 0x0 SW3_127_96 Word 3 of 128-bit signature (bits 127 to 96). 0 32 GPIO0 General Purpose I/O (GPIO) GPIO 0x0 0x0 0xFFFFFF registers n GPIO0 31 DATA Port n data address masking register locations for pins PIOn_0 to PIOn_11 (see Section 9.4.1). 0x3FF8 -1 read-write n 0x0 0x0 DATA0 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 0 1 DATA1 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 1 2 DATA10 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 10 11 DATA11 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 11 12 DATA2 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 2 3 DATA3 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 3 4 DATA4 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 4 5 DATA5 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 5 6 DATA6 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 6 7 DATA7 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 7 8 DATA8 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 8 9 DATA9 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 9 10 RESERVED Reserved 12 32 DIR Data direction register for port n 0x8000 read-write n 0x0 0x0 IO0 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 0 1 IO1 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 1 2 IO10 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 10 11 IO11 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 11 12 IO2 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 2 3 IO3 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 3 4 IO4 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 4 5 IO5 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 5 6 IO6 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 6 7 IO7 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 7 8 IO8 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 8 9 IO9 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 9 10 RESERVED Reserved 12 32 IBE Interrupt both edges register for port n 0x8008 read-write n 0x0 0x0 IBE0 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 0 1 IBE1 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 1 2 IBE10 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 10 11 IBE11 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 11 12 IBE2 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 2 3 IBE3 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 3 4 IBE4 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 4 5 IBE5 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 5 6 IBE6 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 6 7 IBE7 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 7 8 IBE8 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 8 9 IBE9 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 9 10 RESERVED Reserved 12 32 IC Interrupt clear register for port n 0x801C write-only n 0x0 0x0 CLR0 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 0 1 CLR1 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 1 2 CLR10 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 10 11 CLR11 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 11 12 CLR2 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 2 3 CLR3 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 3 4 CLR4 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 4 5 CLR5 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 5 6 CLR6 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 6 7 CLR7 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 7 8 CLR8 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 8 9 CLR9 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 9 10 RESERVED Reserved 12 32 IE Interrupt mask register for port n 0x8010 read-write n 0x0 0x0 MASK0 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 0 1 MASK1 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 1 2 MASK10 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 10 11 MASK11 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 11 12 MASK2 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 2 3 MASK3 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 3 4 MASK4 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 4 5 MASK5 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 5 6 MASK6 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 6 7 MASK7 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 7 8 MASK8 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 8 9 MASK9 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 9 10 RESERVED Reserved 12 32 IEV Interrupt event register for port n 0x800C read-write n 0x0 0x0 IEV0 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 0 1 IEV1 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 1 2 IEV10 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 10 11 IEV11 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS MR0 to 3, rising edges or HIGH level on pin PIOn_x trigger an interrupt. 11 12 IEV2 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 2 3 IEV3 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 3 4 IEV4 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register GIS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 4 5 IEV5 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 5 6 IEV6 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 6 7 IEV7 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 7 8 IEV8 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 8 9 IEV9 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 9 10 RESERVED Reserved 12 32 IS Interrupt sense register for port n 0x8004 read-write n 0x0 0x0 ISENSE0 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 0 1 ISENSE1 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 1 2 ISENSE10 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 10 11 ISENSE11 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 11 12 ISENSE2 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 2 3 ISENSE3 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 3 4 ISENSE4 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 4 5 ISENSE5 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 5 6 ISENSE6 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 6 7 ISENSE7 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 7 8 ISENSE8 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 8 9 ISENSE9 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 9 10 RESERVED Reserved 12 32 MIS Masked interrupt status register for port n 0x8018 read-only n 0x0 0x0 MASK0 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 0 1 MASK1 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 1 2 MASK10 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 10 11 MASK11 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 11 12 MASK2 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 2 3 MASK3 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 3 4 MASK4 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 4 5 MASK5 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 5 6 MASK6 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 6 7 MASK7 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 7 8 MASK8 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 8 9 MASK9 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 9 10 RESERVED Reserved 12 32 RIS Raw interrupt status register for port n 0x8014 read-only n 0x0 0x0 RAWST0 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 0 1 RAWST1 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 1 2 RAWST10 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 10 11 RAWST11 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 11 12 RAWST2 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 2 3 RAWST3 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 3 4 RAWST4 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 4 5 RAWST5 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 5 6 RAWST6 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 6 7 RAWST7 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 7 8 RAWST8 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 8 9 RAWST9 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 9 10 RESERVED Reserved 12 32 GPIO1 General Purpose I/O (GPIO) GPIO 0x0 0x0 0xFFFFFF registers n GPIO1 30 DATA Port n data address masking register locations for pins PIOn_0 to PIOn_11 (see Section 9.4.1). 0x3FF8 -1 read-write n 0x0 0x0 DATA0 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 0 1 DATA1 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 1 2 DATA10 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 10 11 DATA11 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 11 12 DATA2 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 2 3 DATA3 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 3 4 DATA4 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 4 5 DATA5 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 5 6 DATA6 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 6 7 DATA7 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 7 8 DATA8 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 8 9 DATA9 Logic levels for pins PIOn_0 to PIOn_11. HIGH = 1, LOW = 0. 9 10 RESERVED Reserved 12 32 DIR Data direction register for port n 0x8000 read-write n 0x0 0x0 IO0 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 0 1 IO1 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 1 2 IO10 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 10 11 IO11 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 11 12 IO2 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 2 3 IO3 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 3 4 IO4 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 4 5 IO5 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 5 6 IO6 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 6 7 IO7 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 7 8 IO8 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 8 9 IO9 Selects pin x as input or output (x = 0 to 11). 0 = Pin PIOn_x is configured as input. 1 = Pin PIOn_x is configured as output. 9 10 RESERVED Reserved 12 32 IBE Interrupt both edges register for port n 0x8008 read-write n 0x0 0x0 IBE0 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 0 1 IBE1 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 1 2 IBE10 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 10 11 IBE11 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 11 12 IBE2 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 2 3 IBE3 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 3 4 IBE4 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 4 5 IBE5 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 5 6 IBE6 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 6 7 IBE7 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 7 8 IBE8 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 8 9 IBE9 Selects interrupt on pin x to be triggered on both edges (x = 0 to 11). 0 = Interrupt on pin PIOn_x is controlled through register IEV. 1 = Both edges on pin PIOn_x trigger an interrupt. 9 10 RESERVED Reserved 12 32 IC Interrupt clear register for port n 0x801C write-only n 0x0 0x0 CLR0 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 0 1 CLR1 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 1 2 CLR10 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 10 11 CLR11 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 11 12 CLR2 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 2 3 CLR3 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 3 4 CLR4 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 4 5 CLR5 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 5 6 CLR6 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 6 7 CLR7 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 7 8 CLR8 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 8 9 CLR9 Selects interrupt on pin x to be cleared (x = 0 to 11). Clears the interrupt edge detection logic. This register is write-only. The synchronizer between the GPIO and the NVIC blocks causes a delay of 2 clocks. It is recommended to add two NOPs after the clear of the interrupt edge detection logic before the exit of the interrupt service routine. 0 = No effect. 1 = Clears edge detection logic for pin PIOn_x. 9 10 RESERVED Reserved 12 32 IE Interrupt mask register for port n 0x8010 read-write n 0x0 0x0 MASK0 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 0 1 MASK1 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 1 2 MASK10 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 10 11 MASK11 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 11 12 MASK2 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 2 3 MASK3 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 3 4 MASK4 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 4 5 MASK5 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 5 6 MASK6 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 6 7 MASK7 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 7 8 MASK8 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 8 9 MASK9 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = Interrupt on pin PIOn_x is masked. 1 = Interrupt on pin PIOn_x is not masked. 9 10 RESERVED Reserved 12 32 IEV Interrupt event register for port n 0x800C read-write n 0x0 0x0 IEV0 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 0 1 IEV1 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 1 2 IEV10 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 10 11 IEV11 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS MR0 to 3, rising edges or HIGH level on pin PIOn_x trigger an interrupt. 11 12 IEV2 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 2 3 IEV3 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 3 4 IEV4 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register GIS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 4 5 IEV5 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 5 6 IEV6 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 6 7 IEV7 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 7 8 IEV8 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 8 9 IEV9 Selects interrupt on pin x to be triggered rising or falling edges (x = 0 to 11). 0 = Depending on setting in register IS , falling edges or LOW level on pin PIOn_x trigger an interrupt. 1 = Depending on setting in register IS , rising edges or HIGH level on pin PIOn_x trigger an interrupt. 9 10 RESERVED Reserved 12 32 IS Interrupt sense register for port n 0x8004 read-write n 0x0 0x0 ISENSE0 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 0 1 ISENSE1 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 1 2 ISENSE10 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 10 11 ISENSE11 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 11 12 ISENSE2 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 2 3 ISENSE3 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 3 4 ISENSE4 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 4 5 ISENSE5 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 5 6 ISENSE6 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 6 7 ISENSE7 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 7 8 ISENSE8 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 8 9 ISENSE9 Selects interrupt on pin x as level or edge sensitive (x = 0 to 11). 0 = Interrupt on pin PIOn_x is configured as edge sensitive. 1 = Interrupt on pin PIOn_x is configured as level sensitive. 9 10 RESERVED Reserved 12 32 MIS Masked interrupt status register for port n 0x8018 read-only n 0x0 0x0 MASK0 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 0 1 MASK1 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 1 2 MASK10 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 10 11 MASK11 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 11 12 MASK2 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 2 3 MASK3 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 3 4 MASK4 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 4 5 MASK5 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 5 6 MASK6 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 6 7 MASK7 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 7 8 MASK8 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 8 9 MASK9 Selects interrupt on pin x to be masked (x = 0 to 11). 0 = No interrupt or interrupt masked on pin PIOn_x. 1 = Interrupt on PIOn_x. 9 10 RESERVED Reserved 12 32 RIS Raw interrupt status register for port n 0x8014 read-only n 0x0 0x0 RAWST0 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 0 1 RAWST1 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 1 2 RAWST10 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 10 11 RAWST11 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 11 12 RAWST2 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 2 3 RAWST3 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 3 4 RAWST4 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 4 5 RAWST5 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 5 6 RAWST6 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 6 7 RAWST7 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 7 8 RAWST8 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 8 9 RAWST9 Raw interrupt status (x = 0 to 11). 0 = No interrupt on pin PIOn_x. 1 = Interrupt requirements met on PIOn_x. 9 10 RESERVED Reserved 12 32 IOCON I/O Configuration IOCON 0x0 0x0 0xFFF registers n PIO0_1 I/O configuration for pin PIO0_1/CLKOUT/CT32B0_MAT2 0x10 read-write n 0x0 0x0 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_PIO0_1 Selects function PIO0_1. 0x0 SELECTS_FUNCTION_CLKOUT Selects function CLKOUT. 0x1 SELECTS_FUNCTION_CT32B0_MAT2 Selects function CT32B0_MAT2. 0x2 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 6 10 RESERVED Reserved 6 10 PIO0_6 I/O configuration for pin PIO0_6/SCK0 0x4C read-write n 0x0 0x0 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_PIO0_6 Selects function PIO0_6. 0x0 RESERVED_ Reserved. 0x1 SELECTS_FUNCTION_SCK0 Selects function SCK0 (only if pin PIO0_6/SCK0 selected in Table 147). 0x2 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 6 10 RESERVED Reserved 6 10 PIO0_8 I/O configuration for pin PIO0_8/MISO0/CT16B0_MAT0 0x60 read-write n 0x0 0x0 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_PIO0_8 Selects function PIO0_8. 0x0 SELECTS_FUNCTION_MISO0 Selects function MISO0. 0x1 SELECTS_FUNCTION_CT16B0_MAT0 Selects function CT16B0_MAT0. 0x2 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. See Section 7.1 for part specific details. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 11 32 PIO0_9 I/O configuration for pin PIO0_9/MOSI0/CT16B0_MAT1 0x64 read-write n 0x0 0x0 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_PIO0_9 Selects function PIO0_9. 0x0 SELECTS_FUNCTION_MOSI0 Selects function MOSI0. 0x1 SELECTS_FUNCTION_CT16B0_MAT1 Selects function CT16B0_MAT1. 0x2 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. See Section 7.1 for part specific details. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 11 32 PIO1_6 I/O configuration for pin PIO1_6/RXD/CT32B0_MAT0 0xA4 read-write n 0x0 0x0 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_PIO1_6 Selects function PIO1_6. 0x0 SELECTS_FUNCTION_RXD Selects function RXD. 0x1 SELECTS_FUNCTION_CT32B0_MAT0 Selects function CT32B0_MAT0. 0x2 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. See Section 7.1 for part specific details. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 11 32 PIO1_7 I/O configuration for pin PIO1_7/TXD/CT32B0_MAT1 0xA8 read-write n 0x0 0x0 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_PIO1_7 Selects function PIO1_7. 0x0 SELECTS_FUNCTION_TXD Selects function TXD. 0x1 SELECTS_FUNCTION_CT32B0_MAT1 Selects function CT32B0_MAT1. 0x2 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. See Section 7.1 for part specific details. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 11 32 RESET_PIO0_0 I/O configuration for pin RESET/PIO0_0 0xC read-write n 0x0 0x0 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_RESET Selects function RESET. 0x0 SELECTS_FUNCTION_PIO0_0 Selects function PIO0_0. 0x1 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. See Section 7.1 for part specific details. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 11 32 R_PIO0_11 I/O configuration for pin R/PIO0_11/AD0/CT32B0_MAT3 0x74 read-write n 0x0 0x0 ADMODE Selects Analog/Digital mode 7 8 ENUM ANALOG_INPUT_MODE Analog input mode 0 DIGITAL_FUNCTIONAL_M Digital functional mode 1 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_R_ Selects function R. This function is reserved. Select one of the alternate functions below. 0x0 SELECTS_FUNCTION_PIO0_11 Selects function PIO0_11. 0x1 SELECTS_FUNCTION_AD0 Selects function AD0. 0x2 SELECTS_FUNCTION_CT32B0_MAT3 Selects function CT32B0_MAT3. 0x3 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 8 10 RESERVED Reserved 11 32 R_PIO1_0 I/O configuration for pin R/PIO1_0/AD1/CT32B1_CAP0 0x78 read-write n 0x0 0x0 ADMODE Selects Analog/Digital mode 7 8 ENUM ANALOG_INPUT_MODE Analog input mode 0 DIGITAL_FUNCTIONAL_M Digital functional mode 1 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_R_ Selects function R. This function is reserved. Select one of the alternate functions below. 0x0 SELECTS_FUNCTION_PIO1_0 Selects function PIO1_0. 0x1 SELECTS_FUNCTION_AD1 Selects function AD1. 0x2 SELECTS_FUNCTION_CT32B1_CAP0 Selects function CT32B1_CAP0. 0x3 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. See Section 7.1 for part specific details. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 8 10 RESERVED Reserved 11 32 R_PIO1_1 I/O configuration for pin R/PIO1_1/AD2/CT32B1_MAT0 0x7C read-write n 0x0 0x0 ADMODE Selects Analog/Digital mode 7 8 ENUM ANALOG_INPUT_MODE Analog input mode 0 DIGITAL_FUNCTIONAL_M Digital functional mode 1 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_R_ Selects function R. This function is reserved. Select one of the alternate functions below. 0x0 SELECTS_FUNCTION_PIO1_1 Selects function PIO1_1. 0x1 SELECTS_FUNCTION_AD2 Selects function AD2. 0x2 SELECTS_FUNCTION_CT32B1_MAT0 Selects function CT32B1_MAT0. 0x3 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. See Section 7.1 for part specific details. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 8 10 RESERVED Reserved 11 32 R_PIO1_2 I/O configuration for pin R/PIO1_2/AD3/CT32B1_MAT1 0x80 read-write n 0x0 0x0 ADMODE Selects Analog/Digital mode 7 8 ENUM ANALOG_INPUT_MODE Analog input mode 0 DIGITAL_FUNCTIONAL_M Digital functional mode 1 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_R_ Selects function R. This function is reserved. Select one of the alternate functions below. 0x0 SELECTS_FUNCTION_PIO1_2 Selects function PIO1_2. 0x1 SELECTS_FUNCTION_AD3 Selects function AD3. 0x2 SELECTS_FUNCTION_CT32B1_MAT1 Selects function CT32B1_MAT1. 0x3 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. See Section 7.1 for part specific details. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 8 10 RESERVED Reserved 11 32 SWCLK_PIO0_10 I/O configuration for pin SWCLK/PIO0_10/ SCK0/CT16B0_MAT2 0x68 read-write n 0x0 0x0 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_SWCLK Selects function SWCLK. 0x0 SELECTS_FUNCTION_PIO0_10 Selects function PIO0_10. 0x1 SELECTS_FUNCTION_SCK0 Selects function SCK0 (only if pin SWCLK/PIO0_10/SCK0/CT16B0_MAT2 selected in Table 98). 0x2 SELECTS_FUNCTION_CT16B0_MAT2 Selects function CT16B0_MAT2. 0x3 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 11 32 SWDIO_PIO1_3 I/O configuration for pin SWDIO/PIO1_3/AD4/CT32B1_MAT2 0x90 read-write n 0x0 0x0 ADMODE Selects Analog/Digital mode 7 8 ENUM ANALOG_INPUT_MODE Analog input mode 0 DIGITAL_FUNCTIONAL_M Digital functional mode 1 FUNC Selects pin function. All other values are reserved. 0 3 ENUM SELECTS_FUNCTION_SWDIO Selects function SWDIO. 0x0 SELECTS_FUNCTION_PIO1_3 Selects function PIO1_3. 0x1 SELECTS_FUNCTION_AD4 Selects function AD4. 0x2 SELECTS_FUNCTION_CT32B1_MAT2 Selects function CT32B1_MAT2. 0x3 HYS Hysteresis. 5 6 ENUM DISABLE_ Disable. 0 ENABLE_ Enable. 1 MODE Selects function mode (on-chip pull-up/pull-down resistor control). 3 5 ENUM INACTIVE_NO_PULL_DO Inactive (no pull-down/pull-up resistor enabled). 0x0 PULL_DOWN_RESISTOR_E Pull-down resistor enabled. 0x1 PULL_UP_RESISTOR_ENA Pull-up resistor enabled. 0x2 REPEATER_MODE_ Repeater mode. 0x3 OD Selects pseudo open-drain mode. 10 11 ENUM STANDARD_GPIO_OUTPUT Standard GPIO output 0 OPEN_DRAIN_OUTPUT Open-drain output 1 RESERVED Reserved 11 32 RESERVED Reserved 8 10 RESERVED Reserved 11 32 PMU PMU (PowerManagement Unit) PMU 0x0 0x0 0xFFF registers n PCON Power control register 0x0 read-write n 0x0 0x0 RESERVED Reserved. Do not write ones to this bit. 12 32 RESERVED Reserved. This bit must always be written as 0. 1 2 RESERVED Reserved. These bits must always be written as 0. 2 8 RESERVED Reserved. These bits must always be written as 0. 9 11 RESERVED Reserved. This bit must always be written as 0. 11 12 RESERVED Reserved. Do not write ones to this bit. 12 32 SLEEPFLAG Sleep mode flag 8 9 ENUM NOPOWERDOWN Read: No power-down mode entered. LPC1102 is in Active mode. Write: No effect. 0 POWERDOWNENTERED Read: Sleep/Deep-sleepmode entered. Write: Writing a 1 clears the SLEEPFLAG bit to 0. 1 SPI0 SPI0 SPI 0x0 0x0 0xFFF registers n SPI0 20 CPSR Clock Prescale Register 0x10 read-write n 0x0 0x0 CPSDVSR This even value between 2 and 254, by which SPI_PCLK is divided to yield the prescaler output clock. Bit 0 always reads as 0. 0 8 RESERVED Reserved. 8 32 CR0 Control Register 0. Selects the serial clock rate, bus type, and data size. 0x0 read-write n 0x0 0x0 CPHA Clock Out Phase. This bit is only used in SPI mode. 7 8 ENUM FIRSTCLOCK SPI controller captures serial data on the first clock transition of the frame, that is, the transition away from the inter-frame state of the clock line. 0 SECONDCLOCK SPI controller captures serial data on the second clock transition of the frame, that is, the transition back to the inter-frame state of the clock line. 1 CPOL Clock Out Polarity. This bit is only used in SPI mode. 6 7 ENUM LOW SPI controller maintains the bus clock low between frames. 0 HIGH SPI controller maintains the bus clock high between frames. 1 DSS Data Size Select. This field controls the number of bits transferred in each frame. Values 0000-0010 are not supported and should not be used. 0 4 ENUM 4_BIT_TRANSFER 4-bit transfer 0x3 5_BIT_TRANSFER 5-bit transfer 0x4 6_BIT_TRANSFER 6-bit transfer 0x5 7_BIT_TRANSFER 7-bit transfer 0x6 8_BIT_TRANSFER 8-bit transfer 0x7 9_BIT_TRANSFER 9-bit transfer 0x8 10_BIT_TRANSFER 10-bit transfer 0x9 11_BIT_TRANSFER 11-bit transfer 0xA 12_BIT_TRANSFER 12-bit transfer 0xB 13_BIT_TRANSFER 13-bit transfer 0xC 14_BIT_TRANSFER 14-bit transfer 0xD 15_BIT_TRANSFER 15-bit transfer 0xE 16_BIT_TRANSFER 16-bit transfer 0xF FRF Frame Format. 4 6 ENUM SPI SPI 0x0 TI TI 0x1 MICROWIRE Microwire 0x2 RESERVED This combination is not supported and should not be used. 0x3 RESERVED Reserved 16 32 SCR Serial Clock Rate. The number of prescaler output clocks per bit on the bus, minus one. Given that CPSDVSR is the prescale divider, and the APB clock PCLK clocks the prescaler, the bit frequency is PCLK / (CPSDVSR X [SCR+1]). 8 16 CR1 Control Register 1. Selects master/slave and other modes. 0x4 read-write n 0x0 0x0 LBM Loop Back Mode. 0 1 test NORMAL During normal operation. 0 LOOPBACK Serial input is taken from the serial output (MOSI or MISO) rather than the serial input pin (MISO or MOSI respectively). 1 MS Master/Slave Mode.This bit can only be written when the SSE bit is 0. 2 3 test MASTER The SPI controller acts as a master on the bus, driving the SCLK, MOSI, and SSEL lines and receiving the MISO line. 0 SLAVE The SPI controller acts as a slave on the bus, driving MISO line and receiving SCLK, MOSI, and SSEL lines. 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 32 SOD Slave Output Disable. This bit is relevant only in slave mode (MS = 1). If it is 1, this blocks this SPI controller from driving the transmit data line (MISO). 3 4 SSE SPI Enable. 1 2 test DISABLE The SPI controller is disabled. 0 ENABLE The SPI controller will interact with other devices on the serial bus. Software should write the appropriate control information to the other SPI/SSP registers and interrupt controller registers, before setting this bit. 1 DR Data Register. Writes fill the transmit FIFO, and reads empty the receive FIFO. 0x8 read-write n 0x0 0x0 DATA Write: software can write data to be sent in a future frame to this register whenever the TNF bit in the Status register is 1, indicating that the Tx FIFO is not full. If the Tx FIFO was previously empty and the SPI controller is not busy on the bus, transmission of the data will begin immediately. Otherwise the data written to this register will be sent as soon as all previous data has been sent (and received). If the data length is less than 16 bit, software must right-justify the data written to this register. Read: software can read data from this register whenever the RNE bit in the Status register is 1, indicating that the Rx FIFO is not empty. When software reads this register, the SPI controller returns data from the least recent frame in the Rx FIFO. If the data length is less than 16 bit, the data is right-justified in this field with higher order bits filled with 0s. 0 16 RESERVED Reserved. 16 32 ICR SSPICR Interrupt Clear Register 0x20 write-only n 0x0 0x0 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 2 32 RORIC Writing a 1 to this bit clears the frame was received when RxFIFO was full interrupt. 0 1 RTIC Writing a 1 to this bit clears the Rx FIFO was not empty and has not been read for a timeout period interrupt. The timeout period is the same for master and slave modes and is determined by the SSP bit rate: 32 bits at PCLK / (CPSDVSR x [SCR+1]). 1 2 IMSC Interrupt Mask Set and Clear Register 0x14 read-write n 0x0 0x0 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 32 RORIM Software should set this bit to enable interrupt when a Receive Overrun occurs, that is, when the Rx FIFO is full and another frame is completely received. The ARM spec implies that the preceding frame data is overwritten by the new frame data when this occurs. 0 1 RTIM Software should set this bit to enable interrupt when a Receive Time-out condition occurs. A Receive Time-out occurs when the Rx FIFO is not empty, and no has not been read for a time-out period. The time-out period is the same for master and slave modes and is determined by the SSP bit rate: 32 bits at PCLK / (CPSDVSR x [SCR+1]). 1 2 RXIM Software should set this bit to enable interrupt when the Rx FIFO is at least half full. 2 3 TXIM Software should set this bit to enable interrupt when the Tx FIFO is at least half empty. 3 4 MIS Masked Interrupt Status Register 0x1C read-only n 0x0 0x0 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 32 RORMIS This bit is 1 if another frame was completely received while the RxFIFO was full, and this interrupt is enabled. 0 1 RTMIS This bit is 1 if the Rx FIFO is not empty, has not been read for a time-out period, and this interrupt is enabled. The time-out period is the same for master and slave modes and is determined by the SSP bit rate: 32 bits at PCLK / (CPSDVSR x [SCR+1]). 1 2 RXMIS This bit is 1 if the Rx FIFO is at least half full, and this interrupt is enabled. 2 3 TXMIS This bit is 1 if the Tx FIFO is at least half empty, and this interrupt is enabled. 3 4 RIS Raw Interrupt Status Register 0x18 read-only n 0x0 0x0 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 32 RORRIS This bit is 1 if another frame was completely received while the RxFIFO was full. The ARM spec implies that the preceding frame data is overwritten by the new frame data when this occurs. 0 1 RTRIS This bit is 1 if the Rx FIFO is not empty, and has not been read for a time-out period. The time-out period is the same for master and slave modes and is determined by the SSP bit rate: 32 bits at PCLK / (CPSDVSR x [SCR+1]). 1 2 RXRIS This bit is 1 if the Rx FIFO is at least half full. 2 3 TXRIS This bit is 1 if the Tx FIFO is at least half empty. 3 4 SR Status Register 0xC read-only n 0x0 0x0 BSY Busy. This bit is 0 if the SPI controller is idle, 1 if it is currently sending/receiving a frame and/or the Tx FIFO is not empty. 4 5 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 5 32 RFF Receive FIFO Full. This bit is 1 if the Receive FIFO is full, 0 if not. 3 4 RNE Receive FIFO Not Empty. This bit is 0 if the Receive FIFO is empty, 1 if not. 2 3 TFE Transmit FIFO Empty. This bit is 1 is the Transmit FIFO is empty, 0 if not. 0 1 TNF Transmit FIFO Not Full. This bit is 0 if the Tx FIFO is full, 1 if not. 1 2 SYSCON System configuration SYSCON 0x0 0x0 0xFFF registers n PIO0_0 0 PIO0_8 8 PIO0_9 9 PIO0_10 10 PIO0_11 11 PIO1_0 12 BOD 26 BODCTRL BOD control 0x150 read-write n 0x0 0x0 BODINTVAL BOD interrupt level 2 4 ENUM LEVEL_0_RESERVED_ Level 0: Reserved. 0x0 LEVEL_1THE_INTERRUP Level 1:The interrupt assertion threshold voltage is 2.22 V the interrupt de-assertion threshold voltage is 2.35 V. 0x1 LEVEL_2_THE_INTERRU Level 2: The interrupt assertion threshold voltage is 2.52 V the interrupt de-assertion threshold voltage is 2.66 V. 0x2 LEVEL_3_THE_INTERRU Level 3: The interrupt assertion threshold voltage is 2.80 V the interrupt de-assertion threshold voltage is 2.90 V. 0x3 BODRSTENA BOD reset enable 4 5 ENUM DISABLE_RESET_FUNCTI Disable reset function. 0 ENABLE_RESET_FUNCTIO Enable reset function. 1 BODRSTLEV BOD reset level 0 2 ENUM LEVEL_0_RESERVED_ Level 0: Reserved. 0x0 LEVEL_1_THE_RESET_A Level 1: The reset assertion threshold voltage is 2.06 V the reset de-assertion threshold voltage is 2.15 V. 0x1 LEVEL_2_THE_RESET_A Level 2: The reset assertion threshold voltage is 2.35 V the reset de-assertion threshold voltage is 2.43 V. 0x2 LEVEL_3_THE_RESET_A Level 3: The reset assertion threshold voltage is 2.63 V the reset de-assertion threshold voltage is 2.71 V. 0x3 RESERVED Reserved 5 32 CLKOUTCLKDIV CLKOUT clock divider 0xE8 read-write n 0x0 0x0 DIV Clock output divider values 0: Disable CLKOUT. 1: Divide by 1. to 255: Divide by 255. 0 8 RESERVED Reserved 8 32 CLKOUTCLKSEL CLKOUT clock source select 0xE0 read-write n 0x0 0x0 RESERVED Reserved 2 32 SEL CLKOUT clock source 0 2 ENUM IRC_OSCILLATOR IRC oscillator 0x0 SYSTEM_OSCILLATOR System oscillator 0x1 WATCHDOG_OSCILLATOR Watchdog oscillator 0x2 MAIN_CLOCK Main clock 0x3 CLKOUTUEN CLKOUT clock source update enable 0xE4 read-write n 0x0 0x0 ENA Enable CLKOUT clock source update 0 1 ENUM NO_CHANGE No change 0 UPDATE_CLOCK_SOURCE Update clock source 1 RESERVED Reserved 1 32 DEVICE_ID Device ID 0x3F4 read-only n 0x0 0x0 DEVICEID Part ID numbers for LPC1102/04 parts LPC1102 = 0x2500 102B LPC1104 = 0x2548 102B 0 32 IRCCTRL IRC control 0x28 read-write n 0x0 0x0 RESERVED Reserved 9 32 TRIM Trim value 0 8 MAINCLKSEL Main clock source select 0x70 read-write n 0x0 0x0 RESERVED Reserved 2 32 SEL Clock source for main clock 0 2 ENUM IRC_OSCILLATOR IRC oscillator 0x0 INPUT_CLOCK_TO_SYSTE Input clock to system PLL 0x1 WDT_OSCILLATOR WDT oscillator 0x2 SYSTEM_PLL_CLOCK_OUT System PLL clock out 0x3 MAINCLKUEN Main clock source update enable 0x74 read-write n 0x0 0x0 ENA Enable main clock source update 0 1 ENUM NO_CHANGE No change 0 UPDATE_CLOCK_SOURCE Update clock source 1 RESERVED Reserved 1 32 PDAWAKECFG Power-down states after wake-up from Deep-sleep mode 0x234 read-write n 0x0 0x0 ADC_PD ADC wake-up configuration 4 5 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 BOD_PD BOD wake-up configuration 3 4 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 FLASH_PD Flash wake-up configuration 2 3 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 IRCOUT_PD IRC oscillator output wake-up configuration 0 1 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 IRC_PD IRC oscillator power-down wake-up configuration 1 2 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 RESERVED Reserved 16 32 RESERVED Reserved. Always write this bit as 0. 9 10 RESERVED Reserved. Always write this bit as 1. 10 11 RESERVED Reserved. Always write this bit as 1. 11 12 RESERVED Reserved. Always write this bit as 0. 12 13 RESERVED Reserved. Always write these bits as 111. 13 16 RESERVED Reserved 16 32 SYSOSC_PD System oscillator wake-up configuration 5 6 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 SYSPLL_PD System PLL wake-up configuration 7 8 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 WDTOSC_PD Watchdog oscillator wake-up configuration 6 7 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 PDRUNCFG Power-down configuration register 0x238 read-write n 0x0 0x0 ADC_PD ADC power-down 4 5 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 BOD_PD BOD power-down 3 4 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 FLASH_PD Flash power-down 2 3 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 IRCOUT_PD IRC oscillator output power-down 0 1 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 IRC_PD IRC oscillator power-down 1 2 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 RESERVED Reserved 16 32 RESERVED Reserved. Always write this bit as 0. 9 10 RESERVED Reserved. Always write this bit as 1. 10 11 RESERVED Reserved. Always write this bit as 1. 11 12 RESERVED Reserved. Always write this bit as 0. 12 13 RESERVED Reserved. Always write these bits as 111. 13 16 RESERVED Reserved 16 32 SYSOSC_PD System oscillator power-down 5 6 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 SYSPLL_PD System PLL power-down 7 8 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 WDTOSC_PD Watchdog oscillator power-down 6 7 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 PDSLEEPCFG Power-down states in Deep-sleep mode 0x230 read-write n 0x0 0x0 BOD_PD BOD power-down control in Deep-sleep mode, see Table 35. 3 4 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 RESERVED Reserved 13 32 RESERVED Reserved. Always write these bits as 11. 4 6 RESERVED Reserved. Always write this bit as 1. 7 8 RESERVED Reserved. Always write these bits as 000. 8 11 RESERVED Reserved. Always write these bits as 11. 11 13 RESERVED Reserved 13 32 WDTOSC_PD Watchdog oscillator power control in Deep-sleep mode, see Table 35. 6 7 ENUM POWERED Powered 0 POWERED_DOWN Powered down 1 PIOPORCAP0 POR captured PIO status 0 0x100 read-only n 0x0 0x0 CAPPIO0_0 Raw reset status input PIO0_0 0 1 CAPPIO0_10 Raw reset status input PIO0_10 10 11 CAPPIO0_11 Raw reset status input PIO0_11 11 12 CAPPIO0_8 Raw reset status input PIO0_8 8 9 CAPPIO0_9 Raw reset status input PIO0_9 9 10 CAPPIO1_0 Raw reset status input PIO1_0 12 13 CAPPIO1_1 Raw reset status input PIO1_1 13 14 CAPPIO1_2 Raw reset status input PIO1_2 14 15 CAPPIO1_3 Raw reset status input PIO1_3 15 16 CAPPIO1_6 Raw reset status input PIO1_6 18 19 CAPPIO1_7 Raw reset status input PIO1_7 19 20 RESERVED Reserved. 20 32 RESERVED Reserved. 16 18 RESERVED Reserved. 20 32 PRESETCTRL Peripheral reset control 0x4 read-write n 0x0 0x0 RESERVED Reserved 1 32 SSP0_RST_N SPI0 reset control 0 1 ENUM RESETS_THE_SPI0_PERI Resets the SPI0 peripheral. 0 SPI0_RESET_DE_ASSERT SPI0 reset de-asserted. 1 SSP0CLKDIV SPI0 clock divder 0x94 read-write n 0x0 0x0 DIV SPI0_PCLK clock divider values 0: Disable SPI0_PCLK. 1: Divide by 1. to 255: Divide by 255. 0 8 RESERVED Reserved 8 32 STARTAPRP0 Start logic edge control register 0 0x200 read-write n 0x0 0x0 APRPIO0_0 Edge select for start logic input PIO0_0 0 1 ENUM FALLING_EDGE Falling edge 0 RISING_EDGE Rising edge 1 APRPIO0_10 Edge select for start logic input PIO0_10 10 11 ENUM FALLING_EDGE Falling edge 0 RISING_EDGE Rising edge 1 APRPIO0_11 Edge select for start logic input PIO0_11 11 12 ENUM FALLING_EDGE Falling edge 0 RISING_EDGE Rising edge 1 APRPIO0_8 Edge select for start logic input PIO0_8 8 9 ENUM FALLING_EDGE Falling edge 0 RISING_EDGE Rising edge 1 APRPIO0_9 Edge select for start logic input PIO0_9 9 10 ENUM FALLING_EDGE Falling edge 0 RISING_EDGE Rising edge 1 APRPIO1_0 Edge select for start logic input PIO1_0. 12 13 ENUM FALLING_EDGE Falling edge 0 RISING_EDGE Rising edge 1 RESERVED Reserved 13 32 RESERVED Reserved 13 32 STARTERP0 Start logic signal enable register 0 0x204 read-write n 0x0 0x0 ERPIO0_0 Enable start signal for start logic input PIO0_0 0 1 ENUM DISABLED Disabled 0 ENABLED Enabled 1 ERPIO0_10 Enable start signal for start logic input PIO0_10 10 11 ENUM DISABLED Disabled 0 ENABLED Enabled 1 ERPIO0_11 Enable start signal for start logic input PIO0_11 11 12 ENUM DISABLED Disabled 0 ENABLED Enabled 1 ERPIO0_8 Enable start signal for start logic input PIO0_8 8 9 ENUM DISABLED Disabled 0 ENABLED Enabled 1 ERPIO0_9 Enable start signal for start logic input PIO0_9 9 10 ENUM DISABLED Disabled 0 ENABLED Enabled 1 ERPIO1_0 Enable start signal for start logic input PIO1_0 12 13 ENUM DISABLED Disabled 0 ENABLED Enabled 1 RESERVED Reserved. Do not set reserved bits in this register to one. 13 32 RESERVED Reserved. Do not set reserved bits in this register to one. 13 32 STARTRSRP0CLR Start logic reset register 0 0x208 write-only n 0x0 0x0 RESERVED Reserved 13 32 RESERVED Reserved 13 32 RSRPIO0_0 Start signal reset for start logic input PIO0_0 0 1 ENUM _ RESERVED 0 WRITE_RESET_START_S Write: reset start signal 1 RSRPIO0_10 Start signal reset for start logic input PIO0_10 10 11 ENUM _ RESERVED 0 WRITE_RESET_START_S Write: reset start signal 1 RSRPIO0_11 Start signal reset for start logic input PIO0_11 11 12 ENUM _ RESERVED 0 WRITE_RESET_START_S Write: reset start signal 1 RSRPIO0_8 Start signal reset for start logic input PIO0_8 8 9 ENUM _ RESERVED 0 WRITE_RESET_START_S Write: reset start signal 1 RSRPIO0_9 Start signal reset for start logic input PIO0_9 9 10 ENUM _ RESERVED 0 WRITE_RESET_START_S Write: reset start signal 1 RSRPIO1_0 Start signal reset for start logic input PIO1_0 12 13 ENUM _ RESERVED 0 WRITE_RESET_START_S Write: reset start signal 1 STARTSRP0 Start logic status register 0 0x20C read-only n 0x0 0x0 RESERVED Reserved 13 32 RESERVED Reserved 13 32 SRPIO0_0 Start signal status for start logic input 0PIO0_0 0 1 ENUM NO_START_SIGNAL_RECE No start signal received 0 START_SIGNAL_PENDING Start signal pending 1 SRPIO0_10 Start signal status for start logic input PIO0_10 10 11 ENUM NO_START_SIGNAL_RECE No start signal received 0 START_SIGNAL_PENDING Start signal pending 1 SRPIO0_11 Start signal status for start logic input PIO0_11 11 12 ENUM NO_START_SIGNAL_RECE No start signal received 0 START_SIGNAL_PENDING Start signal pending 1 SRPIO0_8 Start signal status for start logic input PIO0_8 8 9 ENUM NO_START_SIGNAL_RECE No start signal received 0 START_SIGNAL_PENDING Start signal pending 1 SRPIO0_9 Start signal status for start logic input PIO0_9 9 10 ENUM NO_START_SIGNAL_RECE No start signal received 0 START_SIGNAL_PENDING Start signal pending 1 SRPIO1_0 Start signal status for start logic input PIO1_0 12 13 ENUM NO_START_SIGNAL_RECE No start signal received 0 START_SIGNAL_PENDING Start signal pending 1 SYSAHBCLKCTRL System AHB clock control 0x80 read-write n 0x0 0x0 ADC Enables clock for ADC. 13 14 ENUM DISABLE Disable 0 ENABLE Enable 1 CT16B0 Enables clock for 16-bit counter/timer 0. 7 8 ENUM DISABLE Disable 0 ENABLE Enable 1 CT16B1 Enables clock for 16-bit counter/timer 1. 8 9 ENUM DISABLE Disable 0 ENABLE Enable 1 CT32B0 Enables clock for 32-bit counter/timer 0. 9 10 ENUM DISABLE Disable 0 ENABLE Enable 1 CT32B1 Enables clock for 32-bit counter/timer 1. 10 11 ENUM DISABLE Disable 0 ENABLE Enable 1 FLASHARRAY Enables clock for flash array access. 4 5 ENUM DISABLED Disabled 0 ENABLED Enabled 1 FLASHREG Enables clock for flash register interface. 3 4 ENUM DISABLED Disabled 0 ENABLED Enabled 1 GPIO Enables clock for GPIO. 6 7 ENUM DISABLE Disable 0 ENABLE Enable 1 IOCON Enables clock for I/O configuration block. 16 17 ENUM DISABLE Disable 0 ENABLE Enable 1 RAM Enables clock for RAM. 2 3 ENUM DISABLE Disable 0 ENABLE Enable 1 RESERVED Reserved 17 32 RESERVED Reserved 14 15 RESERVED Reserved 17 32 ROM Enables clock for ROM. 1 2 ENUM DISABLE Disable 0 ENABLE Enable 1 SSP0 Enables clock for SPI0. 11 12 ENUM DISABLE Disable 0 ENABLE Enable 1 SYS Enables clock for AHB to APB bridge, to the AHB matrix, to the Cortex-M0 FCLK and HCLK, to the SysCon, and to the PMU. This bit is read only. 0 1 ENUM RESERVED Reserved 0 ENABLE Enable 1 UART Enables clock for UART. 12 13 ENUM DISABLE Disable 0 ENABLE Enable 1 WDT Enables clock for WDT. 15 16 ENUM DISABLE Disable 0 ENABLE Enable 1 SYSAHBCLKDIV System AHB clock divider 0x78 read-write n 0x0 0x0 DIV System AHB clock divider values 0: System clock disabled. 1: Divide by 1. to 255: Divide by 255. 0 8 RESERVED Reserved 8 32 SYSMEMREMAP System memory remap 0x0 read-write n 0x0 0x0 MAP System memory remap 0 2 ENUM BOOT_LOADER_MODE_IN Boot Loader Mode. Interrupt vectors are re-mapped to Boot ROM. 0x0 USER_RAM_MODE_INTER User RAM Mode. Interrupt vectors are re-mapped to Static RAM. 0x1 USER_FLASH_MODE_INT User Flash Mode. Interrupt vectors are not re-mapped and reside in Flash. 0x3 USER_FLASH_MODE_INT User Flash Mode. Interrupt vectors are not re-mapped and reside in Flash. 0x3 RESERVED Reserved 2 32 SYSOSCCTRL System oscillator control 0x20 read-write n 0x0 0x0 BYPASS Bypass system oscillator 0 1 ENUM OSCILLATOR_IS_NOT_BY Oscillator is not bypassed. 0 BYPASS_ENABLED_PLL_ Bypass enabled. PLL input (sys_osc_clk) is fed directly from the XTALIN pin bypassing the oscillator. Use this mode when using an external clock source instead of the crystal oscillator. 1 FREQRANGE Determines frequency range for Low-power oscillator. 1 2 ENUM 1__20_MHZ_FREQUENCY 1 - 20 MHz frequency range. 0 15__25_MHZ_FREQUENC 15 - 25 MHz frequency range 1 RESERVED Reserved 2 32 SYSPLLCLKSEL System PLL clock source select 0x40 read-write n 0x0 0x0 RESERVED Reserved 2 32 SEL System PLL clock source 0 2 ENUM IRC_OSCILLATOR IRC oscillator 0x0 SYSTEM_OSCILLATOR System oscillator 0x1 RESERVED Reserved 0x3 RESERVED Reserved 0x3 SYSPLLCLKUEN System PLL clock source update enable 0x44 read-write n 0x0 0x0 ENA Enable system PLL clock source update 0 1 ENUM NO_CHANGE No change 0 UPDATE_CLOCK_SOURCE Update clock source 1 RESERVED Reserved 1 32 SYSPLLCTRL System PLL control 0x8 read-write n 0x0 0x0 MSEL Feedback divider value. The division value M is the programmed MSEL value + 1. 00000: Division ratio M = 1 to 11111: Division ration M = 32 0 5 PSEL Post divider ratio P. The division ratio is 2 x P. 5 7 ENUM P_EQ_1 P = 1 0x0 P_EQ_2 P = 2 0x1 P_EQ_4 P = 4 0x2 P_EQ_8 P = 8 0x3 RESERVED Reserved. Do not write ones to reserved bits. 7 32 SYSPLLSTAT System PLL status 0xC read-only n 0x0 0x0 LOCK PLL lock status 0 1 ENUM PLL_NOT_LOCKED PLL not locked 0 PLL_LOCKED PLL locked 1 RESERVED Reserved 1 32 SYSRSTSTAT System reset status register 0x30 read-write n 0x0 0x0 BOD Status of the Brown-out detect reset 3 4 ENUM NO_BOD_RESET_DETECTE No BOD reset detected 0 BOD_RESET_DETECTED_ BOD reset detected. Writing a one clears this reset. 1 EXTRST Status of the external RESET pin 1 2 ENUM NO_RESET_PIN_EVENT_D No RESET pin event detected 0 RESET_DETECTED_WRIT RESET detected. Writing a one clears this reset. 1 POR POR reset status 0 1 ENUM NO_POR_DETECTED No POR detected 0 POR_DETECTED_WRITIN POR detected. Writing a one clears this reset. 1 RESERVED Reserved 5 32 SYSRST Status of the software system reset 4 5 ENUM NO_SYSTEM_RESET_DETE No System reset detected 0 SYSTEM_RESET_DETECTE System reset detected. Writing a one clears this reset. 1 WDT Status of the Watchdog reset 2 3 ENUM NO_WDT_RESET_DETECTE No WDT reset detected 0 WDT_RESET_DETECTED_ WDT reset detected. Writing a one clears this reset. 1 SYSTCKCAL System tick counter calibration 0x154 read-write n 0x0 0x0 CAL System tick timer calibration value 0 26 RESERVED Reserved 26 32 UARTCLKDIV UART clock divder 0x98 read-write n 0x0 0x0 DIV UART_PCLK clock divider values 0: Disable UART_PCLK. 1: Divide by 1. to 255: Divide by 255. 0 8 RESERVED Reserved 8 32 WDTCLKDIV WDT clock divider 0xD8 read-write n 0x0 0x0 DIV WDT clock divider values 0: Disable WDCLK. 1: Divide by 1. to 255: Divide by 255. 0 8 RESERVED Reserved 8 32 WDTCLKSEL WDT clock source select 0xD0 read-write n 0x0 0x0 RESERVED Reserved 2 32 SEL WDT clock source 0 2 ENUM IRC_OSCILLATOR IRC oscillator 0x0 MAIN_CLOCK Main clock 0x1 WATCHDOG_OSCILLATOR Watchdog oscillator 0x2 RESERVED Reserved 0x3 WDTCLKUEN WDT clock source update enable 0xD4 read-write n 0x0 0x0 ENA Enable WDT clock source update 0 1 ENUM NO_CHANGE No change 0 UPDATE_CLOCK_SOURCE Update clock source 1 RESERVED Reserved 1 32 WDTOSCCTRL Watchdog oscillator control 0x24 read-write n 0x0 0x0 DIVSEL Select divider for Fclkana. wdt_osc_clk = Fclkana/ (2 x (1 + DIVSEL)) 00000: 2 x (1 + DIVSEL) = 2 00001: 2 x (1 + DIVSEL) = 4 to 11111: 2 x (1 + DIVSEL) = 64 0 5 FREQSEL Select watchdog oscillator analog output frequency (Fclkana). 5 9 ENUM 0_6_MHZ 0.6 MHz 0x1 1_05_MHZ 1.05 MHz 0x2 1_4_MHZ 1.4 MHz 0x3 1_75_MHZ 1.75 MHz 0x4 2_1_MHZ 2.1 MHz 0x5 2_4_MHZ 2.4 MHz 0x6 2_7_MHZ 2.7 MHz 0x7 3_0_MHZ 3.0 MHz 0x8 3_25_MHZ 3.25 MHz 0x9 3_5_MHZ 3.5 MHz 0xA 3_75_MHZ 3.75 MHz 0xB 4_0_MHZ 4.0 MHz 0xC 4_2_MHZ 4.2 MHz 0xD 4_4_MHZ 4.4 MHz 0xE 4_6_MHZ 4.6 MHz 0xF RESERVED Reserved 9 32 UART UART UART 0x0 0x0 0xFFF registers n UART 21 ACR Auto-baud Control Register. Contains controls for the auto-baud feature. 0x20 read-write n 0x0 0x0 ABEOINTCLR End of auto-baud interrupt clear (write only accessible) 8 9 ENUM NOIMPACT Writing a 0 has no impact. 0 CLEAR Writing a 1 will clear the corresponding interrupt in the IIR. 1 ABTOINTCLR Auto-baud time-out interrupt clear (write only accessible) 9 10 ENUM NOIMPACT Writing a 0 has no impact. 0 CLEAR Writing a 1 will clear the corresponding interrupt in the IIR. 1 AUTORESTART Restart enable 2 3 ENUM NO_RESTART No restart 0 RESTART_IN_CASE_OF_T Restart in case of time-out (counter restarts at next UART Rx falling edge) 1 MODE Auto-baud mode select 1 2 ENUM MODE_0_ Mode 0. 0 MODE_1_ Mode 1. 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 10 32 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 10 32 START Start bit. This bit is automatically cleared after auto-baud completion. 0 1 ENUM STOP Auto-baud stop (auto-baud is not running). 0 START Auto-baud start (auto-baud is running). Auto-baud run bit. This bit is automatically cleared after auto-baud completion. 1 DLL Divisor Latch LSB. Least significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider. (DLAB=1) RBR 0x0 read-write n 0x0 0x0 DLLSB The UART Divisor Latch LSB Register, along with the DLM register, determines the baud rate of the UART. 0 8 RESERVED Reserved 8 32 DLM Divisor Latch MSB. Most significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider. (DLAB=1) 0x4 read-write n 0x0 0x0 DLMSB The UART Divisor Latch MSB Register, along with the DLL register, determines the baud rate of the UART. 0 8 RESERVED Reserved 8 32 FCR FIFO Control Register. Controls UART FIFO usage and modes. IIR 0x8 write-only n 0x0 0x0 FIFOEN FIFO Enable 0 1 ENUM DISABLED UART FIFOs are disabled. Must not be used in the application. 0 ENABLED Active high enable for both UART Rx and TX FIFOs and FCR[7:1] access. This bit must be set for proper UART operation. Any transition on this bit will automatically clear the UART FIFOs. 1 RESERVED Reserved 8 32 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 6 RESERVED Reserved 8 32 RXFIFORES RX FIFO Reset 1 2 ENUM NO_IMPACT_ON_EITHER_ No impact on either of UART FIFOs. 0 CLEAR Writing a logic 1 to FCR[1] will clear all bytes in UART Rx FIFO, reset the pointer logic. This bit is self-clearing. 1 RXTL RX Trigger Level. These two bits determine how many receiver UART FIFO characters must be written before an interrupt is activated. 6 8 ENUM TRIGGER_LEVEL_0_1_C Trigger level 0 (1 character or 0x01). 0x0 TRIGGER_LEVEL_1_4_C Trigger level 1 (4 characters or 0x04). 0x1 TRIGGER_LEVEL_2_8_C Trigger level 2 (8 characters or 0x08). 0x2 TRIGGER_LEVEL_3_14_ Trigger level 3 (14 characters or 0x0E). 0x3 TXFIFORES TX FIFO Reset 2 3 ENUM NO_IMPACT_ON_EITHER_ No impact on either of UART FIFOs. 0 CLEAR Writing a logic 1 to FCR[2] will clear all bytes in UART TX FIFO, reset the pointer logic. This bit is self-clearing. 1 FDR Fractional Divider Register. Generates a clock input for the baud rate divider. 0x28 read-write n 0x0 0x0 DIVADDVAL Baud rate generation pre-scaler divisor value. If this field is 0, fractional baud rate generator will not impact the UART baud rate. 0 4 MULVAL Baud rate pre-scaler multiplier value. This field must be greater or equal 1 for UART to operate properly, regardless of whether the fractional baud rate generator is used or not. 4 8 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 8 32 IER Interrupt Enable Register. Contains individual interrupt enable bits for the 7 potential UART interrupts. (DLAB=0) DLM 0x4 read-write n 0x0 0x0 ABEOINTEN Enables the end of auto-baud interrupt. 8 9 ENUM DISABLE_END_OF_AUTO_ Disable end of auto-baud Interrupt. 0 ENABLE_END_OF_AUTO_B Enable end of auto-baud Interrupt. 1 ABTOINTEN Enables the auto-baud time-out interrupt. 9 10 ENUM DISABLE_AUTO_BAUD_TI Disable auto-baud time-out Interrupt. 0 ENABLE_AUTO_BAUD_TIM Enable auto-baud time-out Interrupt. 1 RBRIE RBR Interrupt Enable. Enables the Receive Data Available interrupt for UART. It also controls the Character Receive Time-out interrupt. 0 1 ENUM DISABLE_THE_RDA_INTE Disable the RDA interrupt. 0 ENABLE_THE_RDA_INTER Enable the RDA interrupt. 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 10 32 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 4 7 RESERVED Reserved 7 8 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 10 32 RXLIE RX Line Interrupt Enable. Enables the UART RX line status interrupts. The status of this interrupt can be read from LSR[4:1]. 2 3 ENUM DISABLE_THE_RX_LINE_ Disable the RX line status interrupts. 0 ENABLE_THE_RX_LINE_S Enable the RX line status interrupts. 1 THREIE THRE Interrupt Enable. Enables the THRE interrupt for UART. The status of this interrupt can be read from LSR[5]. 1 2 ENUM DISABLE_THE_THRE_INT Disable the THRE interrupt. 0 ENABLE_THE_THRE_INTE Enable the THRE interrupt. 1 IIR Interrupt ID Register. Identifies which interrupt(s) are pending. 0x8 read-only n 0x0 0x0 ABEOINT End of auto-baud interrupt. True if auto-baud has finished successfully and interrupt is enabled. 8 9 ABTOINT Auto-baud time-out interrupt. True if auto-baud has timed out and interrupt is enabled. 9 10 FIFOENABLE These bits are equivalent to FCR[0]. 6 8 INTID Interrupt identification. IER[3:1] identifies an interrupt corresponding to the UART Rx FIFO. All other combinations of IER[3:1] not listed below are reserved (100,101,111). 1 4 ENUM 4_MODEM_INTERRUP 4 - Modem interrupt. 0x0 3_THRE_INTERRUPT 3 - THRE Interrupt. 0x1 2A__RECEIVE_DATA_AV 2a - Receive Data Available (RDA). 0x2 1_RECEIVE_LINE_S 1 - Receive Line Status (RLS). 0x3 2B__CHARACTER_TIME_ 2b - Character Time-out Indicator (CTI). 0x6 INTSTATUS Interrupt status. Note that IIR[0] is active low. The pending interrupt can be determined by evaluating IIR[3:1]. 0 1 ENUM PENDING At least one interrupt is pending. 0 NO_INTERRUPT_IS_PEND No interrupt is pending. 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 10 32 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 10 32 LCR Line Control Register. Contains controls for frame formatting and break generation. 0xC read-write n 0x0 0x0 BC Break Control 6 7 ENUM DISABLE_BREAK_TRANSM Disable break transmission. 0 ENABLE_BREAK_TRANSMI Enable break transmission. Output pin UART TXD is forced to logic 0 when LCR[6] is active high. 1 DLAB Divisor Latch Access Bit 7 8 ENUM DISABLE_ACCESS_TO_DI Disable access to Divisor Latches. 0 ENABLE_ACCESS_TO_DIV Enable access to Divisor Latches. 1 PE Parity Enable 3 4 ENUM DISABLE_PARITY_GENER Disable parity generation and checking. 0 ENABLE_PARITY_GENERA Enable parity generation and checking. 1 PS Parity Select 4 6 ENUM ODD_PARITY_NUMBER_O Odd parity. Number of 1s in the transmitted character and the attached parity bit will be odd. 0x0 EVEN_PARITY_NUMBER_ Even Parity. Number of 1s in the transmitted character and the attached parity bit will be even. 0x1 FORCED_1_STICK_PARIT Forced 1 stick parity. 0x2 FORCED_0_STICK_PARIT Forced 0 stick parity. 0x3 RESERVED Reserved 8 32 SBS Stop Bit Select 2 3 ENUM 1_STOP_BIT_ 1 stop bit. 0 2_STOP_BITS 2 stop bits (1.5 if LCR[1:0]=00). 1 WLS Word Length Select 0 2 ENUM 5_BIT_CHARACTER_LENG 5-bit character length. 0x0 6_BIT_CHARACTER_LENG 6-bit character length. 0x1 7_BIT_CHARACTER_LENG 7-bit character length. 0x2 8_BIT_CHARACTER_LENG 8-bit character length. 0x3 LSR Line Status Register. Contains flags for transmit and receive status, including line errors. 0x14 read-only n 0x0 0x0 BI Break Interrupt. When RXD1 is held in the spacing state (all zeros) for one full character transmission (start, data, parity, stop), a break interrupt occurs. Once the break condition has been detected, the receiver goes idle until RXD1 goes to marking state (all ones). A LSR read clears this status bit. The time of break detection is dependent on FCR[0]. Note: The break interrupt is associated with the character at the top of the UART RBR FIFO. 4 5 ENUM INACTIVE Break interrupt status is inactive. 0 ACTIVE Break interrupt status is active. 1 FE Framing Error. When the stop bit of a received character is a logic 0, a framing error occurs. A LSR read clears LSR[3]. The time of the framing error detection is dependent on FCR0. Upon detection of a framing error, the RX will attempt to re-synchronize to the data and assume that the bad stop bit is actually an early start bit. However, it cannot be assumed that the next received byte will be correct even if there is no Framing Error. Note: A framing error is associated with the character at the top of the UART RBR FIFO. 3 4 ENUM INACTIVE Framing error status is inactive. 0 ACTIVE Framing error status is active. 1 OE Overrun Error. The overrun error condition is set as soon as it occurs. A LSR read clears LSR[1]. LSR[1] is set when UART RSR has a new character assembled and the UART RBR FIFO is full. In this case, the UART RBR FIFO will not be overwritten and the character in the UART RSR will be lost. 1 2 ENUM INACTIVE Overrun error status is inactive. 0 ACTIVE Overrun error status is active. 1 PE Parity Error. When the parity bit of a received character is in the wrong state, a parity error occurs. A LSR read clears LSR[2]. Time of parity error detection is dependent on FCR[0]. Note: A parity error is associated with the character at the top of the UART RBR FIFO. 2 3 ENUM INACTIVE Parity error status is inactive. 0 ACTIVE Parity error status is active. 1 RDR Receiver Data Ready. LSR[0] is set when the RBR holds an unread character and is cleared when the UART RBR FIFO is empty. 0 1 ENUM EMPTY_ RBR is empty. 0 VALID RBR contains valid data. 1 RESERVED Reserved 8 32 RXFE Error in RX FIFO. LSR[7] is set when a character with a RX error such as framing error, parity error or break interrupt, is loaded into the RBR. This bit is cleared when the LSR register is read and there are no subsequent errors in the UART FIFO. 7 8 ENUM NOERROR RBR contains no UART RX errors or FCR[0]=0. 0 ERROR UART RBR contains at least one UART RX error. 1 TEMT Transmitter Empty. TEMT is set when both THR and TSR are empty TEMT is cleared when either the TSR or the THR contain valid data. 6 7 ENUM VALID THR and/or the TSR contains valid data. 0 EMPTY_ THR and the TSR are empty. 1 THRE Transmitter Holding Register Empty. THRE is set immediately upon detection of an empty UART THR and is cleared on a THR write. 5 6 ENUM VALID THR contains valid data. 0 EMPTY_ THR is empty. 1 RBR Receiver Buffer Register. Contains the next received character to be read. (DLAB=0) 0x0 read-only n 0x0 0x0 RBR The UART Receiver Buffer Register contains the oldest received byte in the UART RX FIFO. 0 8 RESERVED Reserved 8 32 RS485ADRMATCH RS-485/EIA-485 address match. Contains the address match value for RS-485/EIA-485 mode. 0x50 read-write n 0x0 0x0 ADRMATCH Contains the address match value. 0 8 RESERVED Reserved 8 32 RS485CTRL RS-485/EIA-485 Control. Contains controls to configure various aspects of RS-485/EIA-485 modes. 0x4C read-write n 0x0 0x0 AADEN AAD enable. 2 3 ENUM DISABLED Auto Address Detect (AAD) is disabled. 0 ENABLED Auto Address Detect (AAD) is enabled. 1 DCTRL Auto direction control enable. 4 5 ENUM DISABLE_AUTO_DIRECTI Disable Auto Direction Control. 0 ENABLE_AUTO_DIRECTIO Enable Auto Direction Control. 1 NMMEN NMM enable. 0 1 ENUM DISABLED RS-485/EIA-485 Normal Multidrop Mode (NMM) is disabled. 0 ENABLED RS-485/EIA-485 Normal Multidrop Mode (NMM) is enabled. In this mode, an address is detected when a received byte causes the UART to set the parity error and generate an interrupt. 1 OINV Polarity control. This bit reverses the polarity of the direction control signal on the RTS (or DTR) pin. 5 6 ENUM LOW The direction control pin will be driven to logic 0 when the transmitter has data to be sent. It will be driven to logic 1 after the last bit of data has been transmitted. 0 HIGH The direction control pin will be driven to logic 1 when the transmitter has data to be sent. It will be driven to logic 0 after the last bit of data has been transmitted. 1 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 6 32 RXDIS Receiver enable. 1 2 ENUM ENABLED The receiver is enabled. 0 DISABLED The receiver is disabled. 1 SEL Select direction control pin 3 4 ENUM RTS If direction control is enabled (bit DCTRL = 1), pin RTS is used for direction control. 0 DTR If direction control is enabled (bit DCTRL = 1), pin DTR is used for direction control. 1 RS485DLY RS-485/EIA-485 direction control delay. 0x54 read-write n 0x0 0x0 DLY Contains the direction control (RTS or DTR) delay value. This register works in conjunction with an 8-bit counter. 0 8 RESERVED Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. 8 32 SCR Scratch Pad Register. Eight-bit temporary storage for software. 0x1C read-write n 0x0 0x0 pad A readable, writable byte. 0 8 RESERVED Reserved 8 32 TER Transmit Enable Register. Turns off UART transmitter for use with software flow control. 0x30 read-write n 0x0 0x0 RESERVED Reserved 8 32 RESERVED Reserved 8 32 TXEN When this bit is 1, as it is after a Reset, data written to the THR is output on the TXD pin as soon as any preceding data has been sent. If this bit cleared to 0 while a character is being sent, the transmission of that character is completed, but no further characters are sent until this bit is set again. In other words, a 0 in this bit blocks the transfer of characters from the THR or TX FIFO into the transmit shift register. Software can clear this bit when it detects that the a hardware-handshaking TX-permit signal (CTS) has gone false, or with software handshaking, when it receives an XOFF character (DC3). Software can set this bit again when it detects that the TX-permit signal has gone true, or when it receives an XON (DC1) character. 7 8 THR Transmit Holding Register. The next character to be transmitted is written here. (DLAB=0) RBR 0x0 write-only n 0x0 0x0 RESERVED Reserved 8 32 THR Writing to the UART Transmit Holding Register causes the data to be stored in the UART transmit FIFO. The byte will be sent when it reaches the bottom of the FIFO and the transmitter is available. 0 8 WWDT Windowed WatchDog Timer (WDT) WWDT 0x0 0x0 0xFFF registers n WDT 25 WDFEED Watchdog feed sequence register. Writing 0xAA followed by 0x55 to this register reloads the Watchdog timer with the value contained in WDTC. 0x8 write-only n 0x0 0x0 Feed Feed value should be 0xAA followed by 0x55. 0 8 RESERVED Reserved 8 32 WDMOD Watchdog mode register. This register contains the basic mode and status of the Watchdog Timer. 0x0 read-write n 0x0 0x0 RESERVED Reserved. Read value is undefined, only zero should be written. 5 32 WDEN Watchdog enable bit. This bit is Set Only. Setting this bit to one also locks the watchdog clock source. Once the watchdog timer is enabled, the watchdog timer clock source cannot be changed. If the watchdog timer is needed in Deep-sleep mode, the watchdog clock source must be changed to the watchdog oscillator before setting this bit to one. 0 1 ENUM STOPPED The watchdog timer is stopped. 0 RUN The watchdog timer is running. 1 WDINT Watchdog interrupt flag. Set when the timer reaches the value in WDWARNINT. Cleared by software. 3 4 WDPROTECT Watchdog update mode. This bit is Set Only. 4 5 ENUM ANYTIME The watchdog reload value (WDTC) can be changed at any time. 0 LOWCOUNTER The watchdog reload value (WDTC) can be changed only after the counter is below the value of WDWARNINT and WDWINDOW. Note: this mode is intended for use only when WDRESET =1. 1 WDRESET Watchdog reset enable bit. This bit is Set Only. 1 2 ENUM NORESET A watchdog timeout will not cause a chip reset. 0 RESET A watchdog timeout will cause a chip reset. 1 WDTOF Watchdog time-out flag. Set when the watchdog timer times out, by a feed error, or by events associated with WDPROTECT, cleared by software. Causes a chip reset if WDRESET = 1. 2 3 WDTC Watchdog timer constant register. This register determines the time-out value. 0x4 read-write n 0x0 0x0 Count Watchdog time-out interval. 0 24 RESERVED Reserved. Read value is undefined, only zero should be written. 24 32 WDTV Watchdog timer value register. This register reads out the current value of the Watchdog timer. 0xC read-only n 0x0 0x0 Count Counter timer value. 0 24 RESERVED Reserved. Read value is undefined, only zero should be written. 24 32 WDWARNINT Watchdog Warning Interrupt compare value. 0x14 read-write n 0x0 0x0 RESERVED Reserved. Read value is undefined, only zero should be written. 10 32 WARNINT Watchdog warning interrupt compare value. 0 10 WDWINDOW Watchdog Window compare value. 0x18 read-write n 0x0 0x0 RESERVED Reserved. Read value is undefined, only zero should be written. 24 32 WINDOW Watchdog window value. 0 24